rateb
rateb

Reputation: 31

How to Compile all SCSS to CSS In different files in node-sass

I have different SCSS files in my SCSS directory, then I want to compile them all in CSS directory but in different files, like grid.scss to grid.css,etc.

Here is my Command:

"watch:scss": "node-sass assets/scss assets/css/ -w",

but It's not working.

Upvotes: 3

Views: 951

Answers (1)

Gaurav Saraswat
Gaurav Saraswat

Reputation: 1383

If the input is a directory the --output flag must also be supplied. Edited command below should get your work done

"watch:scss": "node-sass assets/scss --output=assets/css/",

Upvotes: 1

Related Questions