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 a8d3806 commit df6d331Copy full SHA for df6d331
packages/@angular/cli/models/webpack-configs/production.ts
@@ -98,6 +98,9 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
98
// This plugin must be before webpack.optimize.UglifyJsPlugin.
99
extraPlugins.push(new PurifyPlugin());
100
uglifyCompressOptions.pure_getters = true;
101
+ // PURE comments work best with 3 passes.
102
+ // See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926.
103
+ uglifyCompressOptions.passes = 3;
104
}
105
106
return {
0 commit comments