#Import CSS in Page's <style> section will pollute other page style in dev mode.

2 messages · Page 1 of 1 (latest)

pine moss
#

Hi, I import style using <style>@import url('~/assets/css/styles.css');</style> in about.vue.
When I open dev server through npm run dev, then go to /about page, then go back to index page. The style will acting on index page too. The style won't gone even I reload the index page. But it won't happen if I build the project and run it throgh serve/index.mjs.

Is my import stylesheet method wrong, or it's a bug of dev server?

hexed olive
#

please dm me