Re:HTML First – Six principles for building simple, maintain...
by tabacitu on Sunday November 12, 2023 @02:33PM
(#38243372)
I read it the same way, yes. Good point with the cleanup:
- it’s one thing to need to run build for it to work;
- it’s another thing to run build to make it smaller;
Re:HTML First – Six principles for building simple, maintain...
by MrJohz on Sunday November 12, 2023 @03:18PM
(#38243720)
Tailwind doesn't exist without a build step (at least since v2) — the whole point of Tailwind is that it is a build tool, an alternative syntax for writing CSS.
There's a kind of development version where that build step runs in the browser on page load, but it's still a build step in the sense of generating all that CSS dynamically, and it will produce a poor experience for a user if you try and use it in production.
For example, tailwind without a build step is just the entire library. This means one can go a long way and even have a functioning web application without introducing a build step.
I would say stripping unused CSS is in the same context as optimizing images, fonts etc perhaps generally a "cleanup & prepare assets for production" step.