Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
M4v3R
· 7y ago · 0 comments
It looks nice, but exported CSS is 880 kB unminified (670 kB minified). Yikes. Is there a way to strip out unused portions of it?
Comments
[–]
oskarp
7y ago
See
https://tailwindcss.com/docs/controlling-file-size/
[–]
daniels76
7y ago
You can use PurgeCSS to remove all the unused CSS and that's what Adam Wathan recommends as well I believe
[–]
cygned
7y ago
Yes you can use a configuration file to build it (we integrated it into webpack). The config allows to disable features completely or only include certain versions of them (hover, responsive, focus, ...)
[–]
vcavallo
7y ago
you can use PurgeCSS on your own, i suppose?