I tried to use chokidar, then I wrote my package.json that:
"scripts": {
"start": "browser-sync start --config bs-config2.js & rollup -c -w & chokidar './src/**/*.scss' -c 'npm run bundle-sass'",
"bundle-sass": "node autobundle.js src"
},
but I received that:
Error: $SHELL environment variable is not set.
6:15 PM
at Object.run (/app/node_modules/chokidar-cli/utils.js:17:15)
6:15 PM
at run (/app/node_modules/chokidar-cli/index.js:215:18)
6:15 PM
at debounced (/app/node_modules/lodash/index.js:7737:27)
6:15 PM
at complete (/app/node_modules/lodash/index.js:7697:25)
6:15 PM
at Timeout.delayed [as _onTimeout] (/app/node_modules/lodash/index.js:7707:11)
6:15 PM
at ontimeout (timers.js:488:11)
6:15 PM
at tryOnTimeout (timers.js:323:5)
6:15 PM
at Timer.listOnTimeout (timers.js:283:5)
So, I tried to add process.env.SHELL… but I don’t know path to shell (・д・)
- What value does environment variable SHELL set to?
- Can I set it with that
"start": "SHELL='path/to/shell' browser-sync start --config bs-config2.js & rollup -c -w & chokidar './src/**/*.scss' -c 'npm run bundle-sass'",
?
Thanks!
p.s.
my project is https://glitch.com/edit/#!/boom-crate?path=package.json:6:0