How is < style lang= "scss" > implemented in Vue?

I want to use < style lang= "scss" >

in .html

how should I write the webpack rules? I don"t know how the .vue file is configured ~ found vue-style-loader, but there is nothing about lang

ask for advice

Mar.25,2021

you should not be able to use < style lang= "scss" > in html. If you want to write scss in html, it's not difficult (with the help of tricks), just install ruby, and configure it. But what is introduced in html is css,. The scss file you write will automatically generate a css file, and then you can introduce the css into the page

.

clipboard.png
these three files are automatically generated. You can introduce css into html, and what you write in scss will be compiled in css in real time

Menu