fix(@angular-devkit/build-webpack): skip transition property optimization

jakubpawlowicz/clean-css#1050 to be fixed before removing this option.

Fix #12408
This commit is contained in:
Hsuan Lee 2018-10-12 11:29:05 +08:00 committed by Alex Eagle
parent 8b400f2f74
commit 387d64c317

View File

@ -63,7 +63,11 @@ export class CleanCssWebpackPlugin {
hook(compiler, (compilation: compilation.Compilation, chunks: Array<Chunk>) => {
const cleancss = new CleanCSS({
compatibility: 'ie9',
level: 2,
level: {
2: {
skipProperties: ['transition'] // Fixes #12408
}
},
inline: false,
returnPromise: true,
sourceMap: this._options.sourceMap,