Skip to content

Commit 2574101

Browse files
committed
fix(@angular/cli): ensure purify is before uglify
1 parent 6ae7f9d commit 2574101

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@angular/cli/models/webpack-configs/production.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export function getProdConfig(wco: WebpackConfigOptions) {
127127
}),
128128
new webpack.HashedModuleIdsPlugin(),
129129
new webpack.optimize.ModuleConcatenationPlugin(),
130+
...extraPlugins,
131+
// Uglify should be the last plugin as PurifyPlugin needs to be before it.
130132
new UglifyJSPlugin({
131133
sourceMap: buildOptions.sourcemaps,
132134
uglifyOptions: {
@@ -141,7 +143,6 @@ export function getProdConfig(wco: WebpackConfigOptions) {
141143
},
142144
}
143145
}),
144-
...extraPlugins
145146
]
146147
};
147148
}

0 commit comments

Comments
 (0)