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 (
8484 // enable runtimeChunk
8585 config . optimization . runtimeChunk ( true )
8686
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+ ] )
9699
97100 // disable performance hints
98101 if ( ! app . env . isDebug ) {
You can’t perform that action at this time.
0 commit comments