X Tutup
Skip to content

Commit 5d33a12

Browse files
committed
chore(gulpfile): turn off mangle for prod
Closes angular#7988
1 parent 08b2956 commit 5d33a12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,8 @@ gulp.task('!bundle.js.prod', ['build.js.prod'], function() {
12031203
// minified production build
12041204
gulp.task('!bundle.js.min', ['build.js.prod'], function() {
12051205
var bundler = require('./tools/build/bundle');
1206-
var bundlerConfig = {sourceMaps: true, minify: true};
1206+
var bundlerConfig =
1207+
{sourceMaps: true, minify: true, mangle: false, uglify: {compress: {keep_fnames: true}}};
12071208

12081209
return bundler.bundle(bundleConfig, NG2_BUNDLE_CONTENT, './dist/build/angular2.min.js',
12091210
bundlerConfig)

0 commit comments

Comments
 (0)
X Tutup