#SFC style not loading

1 messages Β· Page 1 of 1 (latest)

glass wren
#

So I'm working with vue 2.7.14. Moving from webpack to vite. All my scss styles in every component (SFC) are not loading.
(If I put my scss files to load with vite.config.js inside the preprocesorOption, it will load and apply styles, but I want my components styles to be load in every component).

https://stackblitz.com/edit/vitejs-vite-n72kb6 ---> Minimal reproduction here. Check that styles in HelloWorld.vue component is not loading and if we put it inside the css in vite.config.js will load it.

Next generation frontend tooling. It's fast!

glass wren
#

@inner urchin Hi! First sorry to tag you, I'm new to Discord and I do not know how to make this questions visible so I can get some help, could you help me with this?

inner urchin
#

You did it right, creating the post here without tagging people is good πŸ‘

#

if someone has time and knows the answer, they will help πŸ™

#

it would be better to use

code
#

with three back ticks

glass wren
#

Oh ok, thank you then! Have a nice day πŸ˜€

inner urchin
#

so your code is more readable to others

#

and you could create a minimal reproduction of your issue

glass wren
#

great! I will edit it

inner urchin
glass wren
inner urchin
#

You can change the vite.config.js there

glass wren
#

yeah and package json, thank you! IM doing it πŸ™‚

glass wren
inner urchin
#

Great, that should help πŸ™
I don't have much experience with Vue 2, hoping someone will jump to your question

glass wren
#

Then solved it in vue channel: #325479107012067328 message