Skip to content

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