8000 fix(prod): fix function name mangling · wrightboy/angular-cli@9188ea2 · GitHub
[go: up one dir, main page]

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 angular#1644 This fixes issue [https://github.c 8000 om/angular/angular-cli/issues/1644](https://github.com/angular/angular-cli/issues/1644) Fix angular#1644 Close angular#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

Lines changed: 1 addition & 1 deletion
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)
0