Skip to content

Commit 9188ea2

Browse files
abnerfilipesilva
authored andcommitted
fix(prod): fix function name mangling
Changed mangle configuration to mangle: { screw_ie8 : true, keep_fnames: true } to fix production builds issue - see #1644 This fixes issue [https://github.com/angular/angular-cli/issues/1644](https://github.com/angular/angular-cli/issues/1644) Fix #1644 Close #1662
1 parent fc0a82e commit 9188ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/ng2/models/webpack-build-production.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, sourceD
2121
// ~107kb
2222
new webpack.optimize.UglifyJsPlugin({
2323
beautify: false, //prod
24-
mangle: { screw_ie8 : true }, //prod
24+
mangle: { screw_ie8 : true, keep_fnames: true }, //prod
2525
compress: { screw_ie8: true }, //prod
2626
comments: false //prod
2727
}),

0 commit comments

Comments
 (0)