From 00682105b061473444b7bc4998fe5a01b5cb4a78 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 20 Feb 2015 11:28:18 +0100 Subject: use sourcemaps to debug instead of debug flag to make it easier to debug minified code in debug mode --- templates/index.php | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'templates/index.php') 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) { -- cgit v1.2.3