Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch doesn't work on Windows 10 #21

Open
mynameisfreedom opened this issue Sep 17, 2021 · 4 comments
Open

Watch doesn't work on Windows 10 #21

mynameisfreedom opened this issue Sep 17, 2021 · 4 comments

Comments

@mynameisfreedom
Copy link

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

@mynameisfreedom
Copy link
Author

mynameisfreedom commented Sep 17, 2021

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

@cferdinandi
Copy link
Owner

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

@kirillminiaev
Copy link

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

@kosperera
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants