Hacker GitHub

← All repos

leeoniya/dropcss

View on GitHub ↗ ★ 2,125 HTML

An exceptionally fast, thorough and tiny unused-CSS cleaner

7 mentions on Hacker News by 1 person: 1 story, 6 comments · first 2019-03-23 · latest 2022-01-13

Mentions per year 7 mentions · busiest year 2019 (4)
20082026
  1. and https://github.com/leeoniya/dropcss , if you're feeling adventurous ;)
  2. https://github.com/leeoniya/dropcss still in js, but very fast, ~10KB (min), 0 dependencies, and does not require npm [1]: however, it expects properly formed html and css; the parsers are quite unforgiving. (i'm the author) [1]…
    comment by leeoniya · 2020-02-26 · in Tailwind UI
  3. i've grumbled about this, too. Tailwind recommends PurgeCSS, but i'll plug my own lib here: https://github.com/leeoniya/dropcss i have a specific section on how to handle tailwind's unorthodox classnames:…
    comment by leeoniya · 2020-02-26 · in Tailwind UI
  4. shameless plug: https://github.com/leeoniya/dropcss it's still written in JS but there is nothing node-specific there. it easily runs in a browser, or any js environment.
  5. shameless plug: https://github.com/leeoniya/dropcss faster and more thorough than PurgeCSS (and all others). specifically for handling TailWind's weird classnames: https://github.com/leeoniya/dropcss#special--escaped-sequenc...
  6. …a counter in there, taking care to split combinator selectors on "," as i do, and add them up. [1] https://github.com/leeoniya/dropcss/blob/master/src/dropcss....