1
votes

As the title stated, I want to node-sass to watch/compile scss files to css without running the command over and over again.

Edit: Is there a grunt task that can run node-sass instead of ruby sass? Because what I've seen is grunt-contrib-sass/compass all use ruby.

2
this is running without ruby?user2167582
Compile SCSS to CSS using node-sassJonathan de M.

2 Answers

1
votes

There is no native watch task available with node-sass, but you can use grunt-contrib-watch and grunt-sass together to achieve the desired effect.

5
votes

Just use the watch flag:

node-sass src/styles.scss dist/styles.css -w src