News for hackers. Stuff that matters.
Re:Ask HN: Which task do you dislike most as front-end engin... by mtmail on Sunday June 23, 2024 @06:54PM (#40771320)
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.
Re:Ask HN: Which task do you dislike most as front-end engin... by DamonHD on Sunday June 23, 2024 @07:11PM (#40771411)
There are several.

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

Re:Ask HN: Which task do you dislike most as front-end engin... by meiraleal on Monday June 24, 2024 @04:01PM (#40780039)
This is a solved problem with tailwind/unocss JIT.