webpack/webpack

webpack --watch doesn't work with parenthesis in the project path

bradleyjames opened this issue · 4 comments

I would never in my right mind add parenthesis to a path name (i.e. "(" or ")"). Unfortunately Dropbox does this when you have a personal account and company account on the same machine. I store my personal projects in "~/Dropbox (Personal)". I've been trying for a while to figure out why I couldn't get react hot reloading to work and the parenthesis in the project path seem to cause watch to not notice file change. To reproduce run the webpack tutorial from a directory with parenthesis in its name.

Webpack version:
1.13.1

Please tell us about your environment:
OSX 10.11.5

Current behavior:
webpack --watch will not notice changes in files and thus will not recompile or update the UI.

Expected/desired behavior:
Webpack worked just like it does with a path without parenthesis in the name.

  • What is the motivation / use case for changing the behavior?
    Dropbox folder naming suckage.

There is also in Windows 10.

Does chokidar-cli work? e.g. chokidar ~/'Dropbox (Personal)/**/*' (the single quotes are important, you have pass the * themselves to chokidar-cli)

You could also try to work around it by using a bind mount or an ntfs junction (if you use symlinks, it'll just follow the symlink and you're back to the first problem), but that's obviously not ideal.

Pretty sure the issue is with Chokidar: paulmillr/chokidar#344