Rspack.LightningcssLoaderOptions | Function | boolean
Rspack.LightningcssLoaderOptions | Function | boolean
only support rspack
You can configure builtin:lightningcss-loader through tools.lightningcssLoader
.
Set tools.lightningcssLoader
to true
to enable Rsbuild's built-in lightningcss-loader
:
At this time, the default configuration is as follows:
It should be noted that when lightningcss-loader
is turned on, postcss-loader
will be turned off by default.
该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - tools.lightningcssLoader。