News for hackers. Stuff that matters.
Re:Tailwind UI by psychometry on Wednesday February 26, 2020 @09:44AM (#22423305)
I'm sure that in an actual project, you can use tree shaking or a custom build to avoid including components you don't need.
Re:Tailwind UI by Tomte on Wednesday February 26, 2020 @09:48AM (#22423349)
Is there a production-ready CSS purger that's not written in JavaScript? Last time I looked I couldn't find any.

I'm not particularly against JavaScript, but I'm not willing to install and use npm and several hundred dependencies.

All documentation for purgecss always includes postcss and a gazillion other packages I have never heard of.

Maybe something in Go, as a single executable?

Re:Tailwind UI by leeoniya on Wednesday February 26, 2020 @12:20PM (#22425030)
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] https://github.com/leeoniya/dropcss/tree/master/dist

Re:Tailwind UI by Tomte on Wednesday February 26, 2020 @12:23PM (#22425061)
Thanks! Properly formed input is not a problem in my case.
Re:Tailwind UI by philippbosch on Wednesday February 26, 2020 @10:00AM (#22423482)
I don't know a non-JS CSS purger, but you don't need postcss to use PurgeCSS.

https://purgecss.com/CLI.html

Re:Tailwind UI by phponpcp on Wednesday February 26, 2020 @11:14AM (#22424284)
"but I'm not willing to install and use npm and several hundred dependencies"

Good luck being a employable lol

Re:Tailwind UI by Tomte on Wednesday February 26, 2020 @11:18AM (#22424336)
Fortunately, there are many IT jobs that don't include any web work.