Skip to content

Commit ff93b85

Browse files
committed
fix optimize-css-assets
1 parent c612b7b commit ff93b85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ module.exports = merge(common('production'), {
1212
optimization: {
1313
minimizer: [
1414
new TerserJSPlugin({}),
15-
new OptimizeCSSAssetsPlugin({})
15+
new OptimizeCSSAssetsPlugin({
16+
cssProcessorPluginOptions: {
17+
preset: ['default', { mergeLonghand: false }]
18+
}
19+
})
1620
],
1721
},
1822
plugins: [

0 commit comments

Comments
 (0)