I’ve been fighting with this for years, I used to use Uncss with a wget-spidered sitemap, later Purgecss with elaborate regexes… until I realized that I pretty much always want to
- whitelist everything in
- purgify everything from
node_modules(usually a CSS framework)
I haven’t found a clean option or plugin to do just this, but a workaround with
purgecss start ignore. It needs more setup, which I detailed in this gist.
(I hope it’s OK to just link it here – this is my first post. HMU if I should unwrap it here & feel free to do so yourself!)