build-tool-boilerplate
build-tool-boilerplate copied to clipboard
Watch doesn't work on Windows 10
For some reason, watch tasks are not working on Windows 10.
Ok, found the solution.
Changing
"watch-css": "chokidar './src/**/*.scss' -c 'npm run css'",
Into
"watch-css": "chokidar \"./src/**/*.scss\" -c \"npm run css\"",
Made it work.
Great work. Thank you for this magnificent piece of code. 🙏
Thanks for the update! I’ll update with proper escaping for Windows 🙌
@cferdinandi I also found that you can omit the quotes around the watch filepath(s) altogether and it works. You do need to escape the "npm run" commands with \"
however per @mynameisfreedom's comments.
Wouldn't it even better if this was written in yarn instead of npm?