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

Add config option for watch polling. #946

Closed
wants to merge 1 commit into from
Closed

Conversation

LinusBorg
Copy link
Contributor

@LinusBorg LinusBorg commented Oct 3, 2017

There seem to be quite a lot of environments (e.g. dropbox folders, docker containers, vagrant ...) in which webpack-dev-middleware's default mode for file watching doesn't work correctly, and thus HMR fails.

In those scenarios, switching to a polling mode seems to fix most people's problems.

This PR adds a new config option for the dev environment to switch to poll mode - this adds the following options to webpack-dev-middleware:

watchOptions: {
  aggregateTimeout: 300,
  poll: true
},

@LinusBorg
Copy link
Contributor Author

This will be done in #975

@LinusBorg LinusBorg closed this Oct 11, 2017
@LinusBorg LinusBorg deleted the add_polling_option branch October 11, 2017 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant