Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great job, this looks awesome! I wish something polished like this was around when I started my stuff. I'm not sure how I feel about Tailwind being almost 1mb of CSS :D, but it's probably worth all the time you save, especially for apps the size isn't such a big deal.


I don't understand why would someone downvote completely reasonable post, but this HN, all kind of s*it happens here.

By adding a simple utility, your css gets very short very quickly.

https://tailwindcss.com/course/optimizing-for-production/


In practice, Tailwind is used with a build step and one of the steps is to run the final CSS through PurgeCSS to drastically reduce the size. Search in the comments here for PurgeCSS - someone had a similar worry and I think they got it down from 1mb to 3.4k or something.


Tailwind is often paired with another build tool called PurgeCSS which eliminates any unused classes.


This was covered early in the tutorial I followed last summer. As someone who likes good web perf and remembers when sites were much slimmer on the frontend, I was very pleasantly surprised with the results I got.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: