-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Watching single files broken on Windows since 4.4.0 because of wrong path separator #226
Comments
@frigus02 can you create minimum reproducible test repo? |
Sure, here you go: https://github.com/frigus02/test-copy-webpack-plugin-path-separator To reproduce, clone on Windows and do:
Then change the file |
Changed |
@frigus02 Thanks for issue. Confirm. WIP |
Thanks @evilebottnawi. I tested the PR and can confirm that it solves the issue on Windows. |
Since version 4.4.0 watching of single files (
from
is no glob and points to file) is broken on Windows. I tracked it down to this change. It changes the file path on Windows like this:The path after the change is registered as a file dependency in webpack. But since it's wrong, webpack does not notice any changes to the file.
The text was updated successfully, but these errors were encountered: