Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 1804f48

Browse files
Martin-Wegnerwardbell
authored andcommitted
since RC5 the webpack prod build is defect (#2200)
* since RC5 the webpack prod build is defect Issue #10618 recommends 'mangle: { keep_fnames: true, screw_ie8: true } for the webpack UglifyJs plugin * remove screw_ie8 option removed the screw_ie8: true option because it is not necessary
1 parent 77aeb84 commit 1804f48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

public/docs/_examples/webpack/ts/config/webpack.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ module.exports = webpackMerge(commonConfig, {
2424
plugins: [
2525
new webpack.NoErrorsPlugin(),
2626
new webpack.optimize.DedupePlugin(),
27-
new webpack.optimize.UglifyJsPlugin(),
27+
new webpack.optimize.UglifyJsPlugin({ // https://github.com/angular/angular/issues/10618
28+
mangle: {
29+
keep_fnames: true
30+
}
31+
}),
2832
new ExtractTextPlugin('[name].[hash].css'),
2933
new webpack.DefinePlugin({
3034
'process.env': {

0 commit comments

Comments
 (0)