Skip to content

Commit e5f32ef

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 0c71a17 commit e5f32ef

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

Lines changed: 5 additions & 1 deletion
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)