3 ms·
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?
by M4v3R 7y ago
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?
- daniels76 7y agoYou can use PurgeCSS to remove all the unused CSS and that's what Adam Wathan recommends as well I believe
- cygned 7y agoYes 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 agoyou can use PurgeCSS on your own, i suppose?
- oskarp 7y agoSee https://tailwindcss.com/docs/controlling-file-size/ https://tailwindcss.com/docs/controlling-file-size/