Stewart
Prevent CSS minify / parsing?
Hi folks 👋 When Nuxt (Vite? Nitro?) parses and compresses my CSS—which makes heavy use of nesting, including nested
@container
queries—it gets very confused and incorrectly groups some selectors together, sharing commands between them that should not be shared. (It all works fine in dev
, but prod
is where the less-than-smart minification kicks in.) I’ve tried so many flags in nuxt.config.ts
to prevent this, but nothing actually works. Anyone know the magic trick to keep Nuxt’s damn hand off my CSS? 😅
5 replies