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

fixing 2 issues related to webpack-dev-server and HMR #939

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

weaverryan
Copy link
Member

@weaverryan weaverryan commented Feb 23, 2021

Fixes #931

  • liveReload currently causes the page to ALWAYS reload: HMR never has a chance to update the content. Disabling by default. This will mean people that currently like the liveReload won't have it anymore unless they re-enable it. But allowing HMR to be broken is not ok. See: [webpack-dev-server] Content base changed. Reloading... #931 (comment)

  • The hostname used for the web socket changed in Webpack 4. For most users it doesn't matter... they use localhost everywhere. But this PR explicitly sets the web socket hostname to the hostname of the dev-server.

TODO: fix/add tests

Cheers!

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

Successfully merging this pull request may close these issues.

[webpack-dev-server] Content base changed. Reloading...
1 participant