S
S
stalker7772021-01-25 15:33:23
Sass
stalker777, 2021-01-25 15:33:23

Why does vue-cli import scss twice in components?

Hello! Don't know why bootstrap scss styles are duplicated three times in the console? I use import only in vue.config.js. vue 2, vue-cli 3
600eb91c42f84694761069.png

600eb972621d4476049653.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Pastukhov, 2021-01-25
@stalker777

Because the additionalData setting says that you need to add what you wrote to each scss file, namely @import "...";
Here is the same problem, but they reproduced it a little differently (they added the same file with styles in different places with handles. They also write a possible solution and issue of the sass-loader itself - read

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question