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
This commit is contained in:
Martin-Wegner 2016-09-02 10:13:34 +02:00 committed by Ward Bell
parent 77aeb84bc2
commit 1804f485dc
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ module.exports = webpackMerge(commonConfig, {
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.UglifyJsPlugin({ // https://github.com/angular/angular/issues/10618
mangle: {
keep_fnames: true
}
}),
new ExtractTextPlugin('[name].[hash].css'),
new webpack.DefinePlugin({
'process.env': {