summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-02-20 11:28:18 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-02-20 11:28:29 +0100
commit00682105b061473444b7bc4998fe5a01b5cb4a78 (patch)
tree08afafc41de7eb54ed4f5d648c660886476a0129 /templates
parent1525755a8f3e6dd1df9a4863ce887f2aa6cd3cb8 (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.php22
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) {