Answer the question
In order to leave comments, you need to log in
How to attach an external CSS file to SCSS/SASS in VS Code?
Decided to try out VS Code. And stuck at the moment of compiling the file with styles.
The fact is that usually, in addition to your own styles, you often have to add styles from various libraries to the main file. Previously, I simply wrote the path to the desired css file like this:
and its code was compiled with the main file. When compiling to VS Code via LiveSassCompile, it only creates a link to the file.
Is it possible to do something about this, or does LiveSassCompile not support importing files at all? @import 'path/to/file/filename'
Answer the question
In order to leave comments, you need to log in
It's not about LiveSassCompile. And the fact is that the directive @import
is arranged in sass, so that files are imported with the .sass (.scss) extension. And if the extension is .css, then the import is inserted as a link.
https://sass-lang.com/documentation/at-rules/import...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question