Commit 1684a5a
committed
bug #939 fixing 2 issues related to webpack-dev-server and HMR (weaverryan)
This PR was squashed before being merged into the main branch.
Discussion
----------
fixing 2 issues related to webpack-dev-server and HMR
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: #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!
Commits
-------
ed41a52 making test more fault tolerant
4178f64 fixing 2 issues related to webpack-dev-server and HMR - fixes #9312 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
600 | 610 | | |
601 | 611 | | |
602 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
2216 | | - | |
| 2215 | + | |
| 2216 | + | |
2217 | 2217 | | |
2218 | | - | |
2219 | | - | |
| 2218 | + | |
| 2219 | + | |
2220 | 2220 | | |
2221 | 2221 | | |
2222 | 2222 | | |
| |||
0 commit comments