Closed Robin-front closed 4 months ago
I'm using @nuxt/critters in nuxt 3, but the css modules key styles are not inlined when configuring generateScopedName.
generateScopedName
Just remove the generateScopedName configuration and everything works fine.
vite: { css: { modules: { generateScopedName: "[hash:base64:8]", }, }, },
It's just passing strings to generateScopedName that can be problematic. It works fine when passing a function to generateScopedName. Probably a problem with postcss-modules.
postcss-modules
I'm using @nuxt/critters in nuxt 3, but the css modules key styles are not inlined when configuring
generateScopedName
.Just remove the
generateScopedName
configuration and everything works fine.