NuxtN
Nuxt4y ago
29 replies
Joaquín

importing raw css with ?inline

I want to inline some critical css styles into a head style (via useHead in all layouts) using import appCss from '../app.css?inline, but them, I get those styles duplicated: running dev server I can see this style being added twice (link preload + link stylesheet) and also the style entry, is there a way to prevent this (maybe Vite problem)?
nuxt-inline-css.png
Was this page helpful?