build-tool-boilerplate icon indicating copy to clipboard operation
build-tool-boilerplate copied to clipboard

Watch doesn't work on Windows 10

Open mynameisfreedom opened this issue 3 years ago • 4 comments

For some reason, watch tasks are not working on Windows 10.

mynameisfreedom avatar Sep 17 '21 10:09 mynameisfreedom

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. 🙏

mynameisfreedom avatar Sep 17 '21 11:09 mynameisfreedom

Thanks for the update! I’ll update with proper escaping for Windows 🙌

cferdinandi avatar Sep 17 '21 12:09 cferdinandi

@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.

kirillminiaev avatar Feb 15 '22 22:02 kirillminiaev

Wouldn't it even better if this was written in yarn instead of npm?

kosperera avatar May 31 '22 17:05 kosperera