Skip to content

Commit 387d64c

Browse files
hsuanxyzalexeagle
authored andcommitted
fix(@angular-devkit/build-webpack): skip transition property optimization
clean-css/clean-css#1050 to be fixed before removing this option. Fix #12408
1 parent 8b400f2 commit 387d64c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/cleancss-webpack-plugin.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export class CleanCssWebpackPlugin {
6363
hook(compiler, (compilation: compilation.Compilation, chunks: Array<Chunk>) => {
6464
const cleancss = new CleanCSS({
6565
compatibility: 'ie9',
66-
level: 2,
66+
level: {
67+
2: {
68+
skipProperties: ['transition'] // Fixes #12408
69+
}
70+
},
6771
inline: false,
6872
returnPromise: true,
6973
sourceMap: this._options.sourceMap,

0 commit comments

Comments
 (0)