Closed andersontr15 closed 7 years ago
How do you refer to Bootstrap classes?
With react's className
attribute.
@andersontr15 Ok, as long as it's className="foobar"
kind of style (nothing dynamic), the tooling just might pick it up. Use the verbose
option to get more insight.
If you can't get it to work, please set up a small repository for me to study.
Yeah I was able to get it to work with bootstrap but now my css modules aren't being picked up even with whitelisting it with 'purify'
CSS Modules takes some extra effort. Please see the README for details.
Got it to work. Don't know if anyone has tried this, but I had to add the .json files emitted by the postcss- modules
to the paths array for purifycss
to get it to work.
@andersontr15 If you have time, please make a doc PR about that. 👍
How to use this with bootstrap and react? I'm importing bootstrap into a bundle right now.