Sass doesn't track changes to @import files
I ran sass --watch styles.scss: styles.css in my css folder.
And it can observe the changes if I make changes in styles.scss
But in styles.scss I imported some other sass files from another folder. And if I make changes to other files, it doesn't track and carry over those changes.
Does anyone know a solution?
+3
source to share
1 answer
// main.scss
@import "./partials/_normalize";
@import "./partials/_article";
use the following command to view both folder and file
scss --watch ./partials/ ./main.scss
The underscore lets Sass know that the file is only a partial file and that it should not be generated into a CSS file http://sass-lang.com/guide
0
source to share