4 ms·
PurifyCSS does that: https://github.com/purifycss/purifycss https://github.com/purifycss/purifycss The only issue I have come across is when you are inserting
by eberkund 9y ago
PurifyCSS does that: https://github.com/purifycss/purifycss https://github.com/purifycss/purifycss
The only issue I have come across is when you are inserting elements with CSS classes using JavaScript. A workaround for this is importing the CSS in the JS module you are using it in via webpack or PurifyCSS also has an option to manually exclude certain selectors.
- tyingq 9y agoAs you mention, It does if you somehow click every combination of buttons, invoke every error, corner case, etc. It can't know about HTML that isn't there, but could be.