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

Problem with absolute path with chokidar 2.X.X #12

Open
GutsFun opened this issue Aug 16, 2018 · 3 comments
Open

Problem with absolute path with chokidar 2.X.X #12

GutsFun opened this issue Aug 16, 2018 · 3 comments

Comments

@GutsFun
Copy link

GutsFun commented Aug 16, 2018

Hi !
With the last version of chokidar it's seems there is an issue on aboslute path on windows when watching less files.
I suggest you add this kind of code when you resolve the path in watch property, it solved my problem:
paths = paths.replace(new RegExp('\\\\', 'g'), '/');

@nermand
Copy link

nermand commented Jun 5, 2019

@GutsFun I think I have a similar problem.
Can you share more info where this change should be made?
Thanks.

@GutsFun
Copy link
Author

GutsFun commented Jun 5, 2019

Place it just before const watcher = chokidar.watch(paths); at line 203 of node-less-chokidar.js

@nermand
Copy link

nermand commented Jun 6, 2019

Perfect, thanks @GutsFun!

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

2 participants