Currently, I am utilizing npm scripts in conjunction with watchify and node-sass while incorporating the -w parameter.
I am curious if it is feasible to execute both of these 'watch' commands simultaneously. Would this setup ensure that only style.css gets compiled when the .scss file changes, and only bundle.js gets compiled when there are updates in the JavaScript source?
"scripts": {
"watch-js":"watchify dev/index.js -o dist/bundle.js",
"watch-css": "node-sass -w my-styles.scss style.css",
"thewatcher": "npm run watch-js & npm run watch-css"
}