4 ms·
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 o
by tjholowaychuk 7y ago
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.
- hi_im_miles 7y agoTailwind is often paired with another build tool called PurgeCSS which eliminates any unused classes.
- zerkten 7y agoThis 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.
- dceddia 7y agoIn 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.
- desireco42 7y agoI 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/ https://tailwindcss.com/course/optimizing-for-production/