You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hopefully, this is the right place to ask this question. My development stack is pretty minimal - Nuxt 3 (SSR mode) + Nuxt-Windi CSS + few other libraries not relevant to this question, e.g., nuxt-i18n, nuxt-pinia, nuxt-vueuse.
Currently, when building the site, all CSS is extracted into a separate file and then it is included in every HTML page as an external link in the <head> section - I understand this is the best practice.
Is it possible to configure the build process somehow so that all required CSS for a page would be included in the Style element of the Head section of an HTML document? Would it be per individual HTML page or per project level doesn't matter at the moment.
I understand there are pros and cons to such an approach, and I want to play around with it on my small hobby project.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Community,
Hopefully, this is the right place to ask this question. My development stack is pretty minimal - Nuxt 3 (SSR mode) + Nuxt-Windi CSS + few other libraries not relevant to this question, e.g., nuxt-i18n, nuxt-pinia, nuxt-vueuse.
Currently, when building the site, all CSS is extracted into a separate file and then it is included in every HTML page as an external link in the
<head>
section - I understand this is the best practice.<link rel="preload" as="style" href="/_nuxt/entry.68f87048.css">
Is it possible to configure the build process somehow so that all required CSS for a page would be included in the Style element of the Head section of an HTML document? Would it be per individual HTML page or per project level doesn't matter at the moment.
I understand there are pros and cons to such an approach, and I want to play around with it on my small hobby project.
Beta Was this translation helpful? Give feedback.
All reactions