Answer the question
In order to leave comments, you need to log in
VS Code and the Live Sass Compiler plugin. How to change compilation directory and not compile other Sass files?
Hello, I will try to describe the problem in as much detail as possible. I apologize if I suddenly blunted somewhere, but I really can’t figure out how to do it here)))
First problem
I
used to work in gulp + sublimeText
So, there in the gulp file you could configure the SCSS compiler to compile to a CSS file only the main file main.scss, and it did not touch such files as header.scss.
That is, for example, we have the main file main.scss and the auxiliary file header.scss. So, inside main.scss, header.scss import is written and thus all styles from header.scss will be safely transferred to main.scss.
Next, this main file main.scss is compiled into just main.css. That is, the auxiliary header.scss file is NOT compiled.
Now I've moved into visual studio code and found the quite popular Live Sass Compiler plugin .
so, it compiles absolutely all files, that is, if we take the example described above, it will compile both the main main.scss file and the auxiliary header.scss file
The second
compilation in this plugin takes place in one directory, but I would like, again or from experience with gulp, so that the main file is compiled into a different folder.
That is, for example, I created one folder where the "draft" files with the .scss extension lie and another folder for the "clean" .css file. And it is necessary that the main file with the .scss extension be compiled into a .css file from the "draft" folder, respectively, into the "clean" folder for .css.
Answer the question
In order to leave comments, you need to log in
On the first question - put an underscore at the beginning of the file name, except for the main one.
According to the second https://github.com/ritwickdey/vscode-live-sass-com...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question