purifycss-webpack
purifycss-webpack copied to clipboard
whitelist a camel case class not working
Not working:
whitelist: ['*doNotRemove*']
.doNotRemove-this-class {
color: red;
}
This works fine:
whitelist: ['*do_not_remove*']
.do_not_remove-this-class {
color: red;
}
I'm encountering this issue too...
Seems like it's potentially still an issue with purifycss itself, not the webpack plugin: https://github.com/purifycss/purifycss/issues/145
The fact a PR to solve this has remained unmerged, it seems like purifycss might not be actively maintained anymore.
I can't rename third party lib css files, so need some sort of solution. It looks like https://www.purgecss.com/with-webpack has a webpack integration and supports whiteList regex which should get around the case issues encountered here..