Skip to content

Commit e48d545

Browse files
iamchuckyclydin
authored andcommitted
fix(@angular/cli): disables clean-css mergeIntoShorthands
1 parent 465b1ea commit e48d545

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ export class CleanCssWebpackPlugin {
3737

3838
const cleancss = new CleanCSS({
3939
compatibility: 'ie9',
40-
// use a safer optimization level
41-
// see: https://github.com/jakubpawlowicz/clean-css#optimization-levels
42-
level: 1,
40+
// disables mergeIntoShorthands due to issue with merged style ordering
41+
// see: https://github.com/jakubpawlowicz/clean-css/issues/1022
42+
level: {
43+
2: { mergeIntoShorthands: false }
44+
},
4345
inline: false,
4446
returnPromise: true,
4547
sourceMap: this._options.sourceMap,

0 commit comments

Comments
 (0)