From 1e3eeb7e3b5b330cc8fd510c8adf9cee05e64815 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Sun, 13 Aug 2017 20:10:55 +0300 Subject: [PATCH] feat(build): Turn on mangling for uglify (#1841) Turns on mangling for uglify (minified javascript for production). Previously this might've caused issues with AngularJS, but since we are now using `ngAnnotate`, those issues are gone. https://github.com/mishoo/UglifyJS2#minify-options --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 122bf7640c..4a234cd118 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -152,7 +152,7 @@ gulp.task('uglify', function () { return gulp.src(assets) .pipe(plugins.ngAnnotate()) .pipe(plugins.uglify({ - mangle: false + mangle: true })) .pipe(plugins.concat('application.min.js')) .pipe(plugins.rev())