Stewart
Stewart
NNuxt
Created by Stewart on 12/15/2024 in #❓・help
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? 😅
Node 18.17.0
Nuxt 3.8.0-28284309.b3d3d7f4
Nitro 2.7.0-28295243.3e9302a
Node 18.17.0
Nuxt 3.8.0-28284309.b3d3d7f4
Nitro 2.7.0-28295243.3e9302a
5 replies