-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
On windows, cannot watch files with some glob patterns #714
Comments
Can't do that on Windows as it will introduce backslash path separators to your glob pattern, which is invalid. It's unnecessary anyway. You can just watch |
@es128 E.g: const sourceDir = '[An absolute path that passed by other script]'
const pagesWatcher = chokidar.watch([
path.join(sourceDir , 'watchdir/**/*.md')
], {
ignoreInitial: true
}) |
Then make sure |
Also |
@es128 Results like:
|
notice the backslashes in the result? invalid glob. Don't use |
Works well on Ubuntu, but logs nothing on Windows
The text was updated successfully, but these errors were encountered: