3 ms·
https://purgecss.com/ https://purgecss.com/
by EnigmaCurry 6y ago
https://purgecss.com/ https://purgecss.com/
- leephillips 6y agoThanks. I assumed someone somewhere had solved this problem.
- quickthrower2 6y agoThis all feels weird to me. Sort of like anti-compiling! But I guess it works. I do like to avoid JS toolchains if I can though. Even though I am a webpack aficionado. But if you are going to have a css class for every possible style you might want to use, there is probably no other way.
- leephillips 6y agoI was thinking that this should go in reverse: since the class names follow a pattern, you should just be able to make up classes to do what you want, and code should generate the CSS file based on his pattern. That would be offline, and could be in any language