V
V
Vernal962021-09-10 18:57:09
Visual Studio Code
Vernal96, 2021-09-10 18:57:09

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

1 answer(s)
P
PiCensored, 2021-11-17
@PiCensored

It's not about LiveSassCompile. And the fact is that the directive @importis 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 question

Ask a Question

731 491 924 answers to any question