Open npearson72 opened 2 years ago
I have the exact same problem, but classes don't get picked up even by postcss.
I have the same problem, the className will be removed
Hey guys,
Check this out: https://github.com/FullHuman/purgecss/issues/163#issuecomment-1141698184
Cheers!
Describe the bug Using the
purgecss-webpack-plugin
strips out React css module classes.To Reproduce Steps to reproduce the behavior:
When using the following config with
purgecss-webpack-plugin
I don't see any of my React css module classes:I've also tried to introduce a
defaultExtractor
but to no avail:I'm also using
MiniCssExtractPlugin
andCssMinimizerPlugin
.My full setup:
However, if I remove the
purgecss-webpack-plugin
from my webpack configs, and instead use the standard PostCSS plugin in mypostcss.config.js
it works fine, example:Expected behavior I would expect
purgecss-webpack-plugin
to not strip out the React module classesEnvironment (please complete the following information):