purifycss-webpack icon indicating copy to clipboard operation
purifycss-webpack copied to clipboard

whitelist a camel case class not working

Open pldg opened this issue 7 years ago • 1 comments

Not working:

whitelist: ['*doNotRemove*']

.doNotRemove-this-class {
  color: red;
}

This works fine:

whitelist: ['*do_not_remove*']

.do_not_remove-this-class {
  color: red;
}

purifycss issue #156

pldg avatar May 14 '18 14:05 pldg

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..

oller avatar Jul 17 '18 20:07 oller