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 mode doesn't work in specific folder #16

Closed
bebraw opened this issue Dec 24, 2016 · 1 comment
Closed

Watch mode doesn't work in specific folder #16

bebraw opened this issue Dec 24, 2016 · 1 comment

Comments

@bebraw
Copy link

bebraw commented Dec 24, 2016

I'm submitting a bug report

Webpack version:
1.13.2

Please tell us about your environment:
Windows 7

Current behavior:

Minimal test case.

Consider the following JS file index.js (the only file in a folder):

var k = 0;

I'm trying to start webpack in watch mode:

webpack index.js bundle.js --watch

When my work folder is c:\dev\, everything works as expected. But if I work in folder c:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\, webpack doesn't rebuild project after I change index.js file.

Expected/desired behavior:
Watch mode should work in any folder.

Notes
I tried to understand the source of the problem. Looks like npm module is-glob (dependency list: webpack->watchpack->chokidar->is-glob) thinks that c:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ is a glob and watchpack tries to listen changes in wrong not existing directory (c:\Program Files x86\Apache Software Foundation\Apache2.2\htdocs\?).

Maybe, it will help you to fix this bug!

Moved from webpack/webpack#2994

@SpaceK33z
Copy link
Member

Moving again since this was the wrong project 😄. Moved to webpack/watchpack#42.

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