Friday, July 5, 2019

SASS: Compile into a single file

Inside style.scss, for example u can use:
@import "header";
@import "footer";
And then just do:
sass --watch .
It will compile all files in the directory to .css; ignoring files whose name start with a _.

I you modify _header.scss or _footer.scss, it will update style.scss too.

No comments:

Post a Comment