michaelwayman / node-sass-chokidar

A thin wrapper around node-sass to replicate the --watch using chokidar instead of Gaze
MIT License
291 stars 37 forks source link

how to compile multiple sources #37

Closed heinhoang closed 6 years ago

heinhoang commented 6 years ago

I want to compile scss from folder src1 to target1 and src2 to target2. How to do that?

michaelwayman commented 6 years ago

You should be able to run 2 instances of node-sass-chokidar at the same time. You'll just need to have 2 terminals running at the same time. I don't believe there is another way

heinhoang commented 6 years ago

Thanks, if that's the only way I think we can use concurrently to run the commands as parallel tasks:

"watch": "concurrently -k \"node-sass-chokidar src1/ -o target1/ --watch\" \"node-sass-chokidar src2/ -o target2/ --watch\""