I am trying to set up an NPM script that will watch for changes to .scss files in multiple directories and compile them to separate directories.
This is my current set up:
"scripts": {
"watch": "npm run bcon-watch && npm run root-watch",
"root-watch": "node-sass -wr --source-map true --output-style compact css/sass/ -o css/",
"bcon-watch": "node-sass -wr --source-map true --output-style compact bcon/css/sass/ -o bcon/css/"
},
However this only runs the first script and watches that directory (root-watch), is it possible to watch multiple folders this way? if not what should I look into to make this work?
Thanks!