File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1- import { type Compiler , CopyRspackPlugin , type CopyRspackPluginOptions } from "@rspack/core" ;
1+ import {
2+ type Compiler ,
3+ CopyRspackPlugin ,
4+ type CopyRspackPluginOptions ,
5+ LightningCssMinimizerRspackPlugin ,
6+ SwcJsMinimizerRspackPlugin
7+ } from "@rspack/core" ;
28import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" ;
39import LicensePlugin from "webpack-license-plugin" ;
410import UnPluginTypia from "@ryoppippi/unplugin-typia/rspack" ;
@@ -217,6 +223,14 @@ const config = defineConfig((env) => ({
217223 filename : "[name]" ,
218224 clean : true
219225 } ,
226+ optimization : {
227+ minimizer : [
228+ new SwcJsMinimizerRspackPlugin ( {
229+ extractComments : true
230+ } ) ,
231+ new LightningCssMinimizerRspackPlugin ( { } )
232+ ]
233+ } ,
220234 module : {
221235 rules : [
222236 {
You can’t perform that action at this time.
0 commit comments