From 5d33a12af43361e8951cbcb6a38db85573930189 Mon Sep 17 00:00:00 2001 From: gdi2290 Date: Fri, 8 Apr 2016 17:04:29 -0700 Subject: [PATCH] chore(gulpfile): turn off mangle for prod Closes #7988 --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0544c90cfe..9863586bab 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1203,7 +1203,8 @@ gulp.task('!bundle.js.prod', ['build.js.prod'], function() { // minified production build gulp.task('!bundle.js.min', ['build.js.prod'], function() { var bundler = require('./tools/build/bundle'); - var bundlerConfig = {sourceMaps: true, minify: true}; + var bundlerConfig = + {sourceMaps: true, minify: true, mangle: false, uglify: {compress: {keep_fnames: true}}}; return bundler.bundle(bundleConfig, NG2_BUNDLE_CONTENT, './dist/build/angular2.min.js', bundlerConfig)