chore(gulpfile): turn off mangle for prod

Closes #7988
This commit is contained in:
gdi2290 2016-04-08 17:04:29 -07:00 committed by PatrickJS
parent 08b295603c
commit 5d33a12af4
1 changed files with 2 additions and 1 deletions

View File

@ -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)