Skip to content

Commit 465b1ea

Browse files
iamchuckyclydin
authored andcommitted
fix(@angular/cli): use safer clean-css optimization level
1 parent 0b291ab commit 465b1ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@angular/cli/plugins/cleancss-webpack-plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export class CleanCssWebpackPlugin {
3737

3838
const cleancss = new CleanCSS({
3939
compatibility: 'ie9',
40-
level: 2,
40+
// use a safer optimization level
41+
// see: https://github.com/jakubpawlowicz/clean-css#optimization-levels
42+
level: 1,
4143
inline: false,
4244
returnPromise: true,
4345
sourceMap: this._options.sourceMap,

0 commit comments

Comments
 (0)