nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
273 stars 29 forks source link

All scoped CSS are loaded when extractCSS is enabled #52

Open naisonsouza opened 2 years ago

naisonsouza commented 2 years ago

Environment

Reproduction

https://codesandbox.io/s/clever-einstein-rkbwb?file=/nuxt.config.js

Describe the bug

When load a page, all css files are loaded from pages and components, same the scoped attribute is present.

Ex: pages

components

When request page index.vue are loaded all CSS: index.css, about.css, componenta.css, componentb.css

Additional context

No response

Logs

No response

vitaly-petras commented 11 months ago

Any progress here? This is not a bug about extractCSS. With extractCSS enabled i have all css in single file (even from pages or components i never used or imported) and with falsy all this css are inlined. My nuxt version is 2.17.2.