CSS modules: How to replace css-loader
with the other minimizers CssMinimizerPlugin
for CSS modules?
#18075
-
I know that module: {
rules: [
{
test: /.s?css$/,
use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
},
],
},
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
alexander-akait
Feb 14, 2024
Replies: 1 comment 3 replies
-
You need to create a loader and use Lightning CSS there, it is impossible to use Lightning CSS modules in CssMinimizerPlugin |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
nyngwang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to create a loader and use Lightning CSS there, it is impossible to use Lightning CSS modules in CssMinimizerPlugin