Hacker News new | ask | show | jobs
by mtmail 723 days ago
Figuring out which CSS rules are actually used. I could swear I saw a tool 10 years ago that would go through pages and list unused CSS rules. Maybe it got too complex with pre-processors and CSS having its own macro language.
2 comments

There are several.

I use a combination of (from npm): cleancss, PurgeCSS, UnCSS, purifyccs.

This is a solved problem with tailwind/unocss JIT.