diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-20 13:28:18 +0300 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-20 13:28:29 +0300 |
commit | 00682105b061473444b7bc4998fe5a01b5cb4a78 (patch) | |
tree | 08afafc41de7eb54ed4f5d648c660886476a0129 /templates | |
parent | 1525755a8f3e6dd1df9a4863ce887f2aa6cd3cb8 (diff) |
use sourcemaps to debug instead of debug flag to make it easier to debug minified code in debug mode
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/templates/index.php b/templates/index.php index 886630f24..428fae395 100644 --- a/templates/index.php +++ b/templates/index.php @@ -7,27 +7,11 @@ script('news', [ 'vendor/angular-animate/angular-animate.min', 'vendor/angular-route/angular-route.min', 'vendor/angular-sanitize/angular-sanitize.min', - 'vendor/momentjs/min/moment-with-locales.min' + 'vendor/momentjs/min/moment-with-locales.min', + 'build/app.min' ]); -if (defined('DEBUG') && DEBUG === true) { - style('news', [ - 'app', - 'custom', - 'content', - 'mobile', - 'navigation', - 'settings', - 'shortcuts', - 'explore' - ]); - - script('news', 'build/app'); - -} else { - style('news', 'news.min'); - script('news', 'build/app.min'); -} +style('news', 'news.min'); // load plugin scripts and styles foreach (Plugin::getStyles() as $appName => $fileName) { |