From db5ac50350cff6755bfe093ee7f747088bd2d48b Mon Sep 17 00:00:00 2001 From: Antoine Date: Sun, 12 Jun 2016 10:59:28 +0200 Subject: [PATCH] Corrige des erreurs au moment de la minification des scripts --- gulpfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2b66433..b4509c5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,9 @@ gulp.task("scripts-rev", function(){ gulp.task("scripts-min", function(){ return gulp.src(['dist/js/app/**/*.js']) - .pipe(uglify()) + .pipe(uglify({ + mangle: { except: ['$', 'require'] } + })) .pipe(gulp.dest('dist/js/app')); }); @@ -106,5 +108,5 @@ gulp.task('sync', function() { }); gulp.task("build", function(){ - return runSequence('clean', 'sync', 'scripts-rev', 'styles-rev', 'config-rev', 'scripts-rev-replace', 'styles-rev-replace', 'config-rev-replace', 'index-rev-replace', /*'scripts-min',*/ 'styles-min'); + return runSequence('clean', 'sync', 'scripts-rev', 'styles-rev', 'config-rev', 'scripts-rev-replace', 'styles-rev-replace', 'config-rev-replace', 'index-rev-replace', 'scripts-min', 'styles-min'); });