From a83d15ba79ea4bdcf9da8b1cec6fba41a5c919ca 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 --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 3f6cd44180cf..2f32cc4df0ba 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)