From a578dbff755d61105ef32758f714a61c0fd13e21 Mon Sep 17 00:00:00 2001 From: Julien Vallini Date: Sat, 18 Jul 2015 18:01:15 +0200 Subject: [PATCH] Fix gulp build error Original error : Uncaught Error: [$injector:modulerr] Failed to instantiate module doppel due to: Error: [$injector:nomod] Module 'doppel' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. Stack overflow thread : http://stackoverflow.com/questions/17238759/angular-module-minification-bug --- app/templates/gulp/_build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/gulp/_build.js b/app/templates/gulp/_build.js index d415c58e..f1695458 100644 --- a/app/templates/gulp/_build.js +++ b/app/templates/gulp/_build.js @@ -48,7 +48,7 @@ gulp.task('html', ['inject', 'partials'], function () { .pipe($.rev()) .pipe(jsFilter) .pipe($.ngAnnotate()) - .pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify')) + .pipe($.uglify({ preserveComments: $.uglifySaveLicense, mangle: false })).on('error', conf.errorHandler('Uglify')) .pipe(jsFilter.restore()) .pipe(cssFilter) <% if (props.ui.key === 'bootstrap' && props.cssPreprocessor.extension === 'scss') { -%>