-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Allow user to set WebpackDevServer watchOptions.poll option for react-scripts start #1049
Comments
We try to avoid config flags like this as much as possible. I wonder if it would be possible to somehow detect that we're in an environment like that and fall back to polling automatically. |
Same for me, I cannot count on inotify since I am using shared folders, vagrant and Virtualbox but I'd like to use polling as a workaround. |
Chokidar, which Webpack uses for watching changes has an environment to force the use of polling:
|
Using the env variable works for me. |
It seems that an env variable for polling interval has been requested (paulmillr/chokidar#518) and the author has approved the idea, someone just needs to implement it 😃 |
Going to close as there is a path forward (described above) that is out of our control. |
Thanks @fson updating script to use |
Hey, I might be being docker-stupid, but where is this supposed to code? I assumed that you would replace the |
The app watches for file changes with the mechanism described at: * facebook/create-react-app#1049
The app watches for file changes with the mechanism described at: * facebook/create-react-app#1049
Add some development-mode configs for `client` When uncommented, these configs will tell the app to watch for file changes with the mechanism described at: * facebook/create-react-app#1049
you know, if all these nodejs people writing cli apps used |
This could potentially be done by modifying the instantiation of the WebpackDevServer in start.js to look like:
This use case is important to me (and others) because I'm developing in a Docker container, which has issues with inotify (due to mounting volumes with aufs), which precludes the automatic rebuild without the watchOptions poll setting.
The text was updated successfully, but these errors were encountered: