We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd66e7 commit 9025b5aCopy full SHA for 9025b5a
packages/@angular/cli/models/webpack-configs/production.ts
@@ -117,7 +117,13 @@ export function getProdConfig(wco: WebpackConfigOptions) {
117
}));
118
}
119
120
- const uglifyCompressOptions: any = {};
+ const uglifyCompressOptions: any = {
121
+ // Disabled because of an issue with Uglify breaking seemingly valid code:
122
+ // https://github.com/angular/angular-cli/issues/5804
123
+ // Further investigation:
124
+ // https://github.com/mishoo/UglifyJS2/issues/2011
125
+ comparisons: false
126
+ };
127
128
if (buildOptions.buildOptimizer) {
129
// This plugin must be before webpack.optimize.UglifyJsPlugin.
0 commit comments