File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
packages/bundler-webpack/src/build Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,18 @@ export const createClientConfig = async (
84
84
// enable runtimeChunk
85
85
config . optimization . runtimeChunk ( true )
86
86
87
- // minify css
88
- config . optimization
89
- . minimizer ( 'css-minimizer-webpack-plugin' )
90
- . use ( CssMinimizerPlugin , [
91
- {
92
- minify :
93
- CssMinimizerPlugin . lightningCssMinify as CssMinimizerPlugin . BasicMinimizerImplementation < unknown > ,
94
- } ,
95
- ] )
87
+ // minimize
88
+ config . optimization . minimize ( true )
89
+
90
+ // minimizer
91
+ config . optimization . set ( 'minimizer' , [
92
+ // keep the default minimizer
93
+ '...' ,
94
+ // add css minimizer
95
+ new CssMinimizerPlugin ( {
96
+ minify : CssMinimizerPlugin . lightningCssMinify ,
97
+ } ) ,
98
+ ] )
96
99
97
100
// disable performance hints
98
101
if ( ! app . env . isDebug ) {
You can’t perform that action at this time.
0 commit comments