If you’re using CSS Nesting, make sure your minifier supports it!
As I learned today, clean-css doesn’t support it yet: github.com/clean-css/cl...
Zach Leatherman 99 replies 2626 likes77 reposts Original on MastodonOriginal on BlueskyAlso posted to Mastodon.
9 replies
@zachleat They seem to have no release for the past 2 years (without showing releases on their Github page) and are in maintenance mode. I doubt they will close the gap now.
The internet now has a "pre-baseline tool" and "post-baseline tool" epoch (where the baseline is the "coming into existence of the baseline concept" part, not the baseline itself).
@davidsneighbour tooling that requires updates when web standards add new features is so risky!
I you don’t need to support older Safari versions, you could just use native CSS nesting without any preprocessor/minifier.
fwiw I’m not preprocessing (only post)
pre- post- …all depends on the perspective! ;-)
Long life to lightningcss.dev
oh, nice! looks like they trimmed the package size down quite a bit since I last looked
I wouldn't say I'm glad this happened to you, but I am glad this sort of thing doesn't only happen to me. I went through this and the whole "why is it not working" thing a little bit ago and ended up with PostCSS/cssnano.
🏆 the confusing part happens when the tool fails silently 🫣