From 48eda0b3daf4c933cafabc57bd710c475807870e Mon Sep 17 00:00:00 2001 From: illusionalsagacity Date: Wed, 2 Sep 2020 09:30:45 -0400 Subject: [PATCH] chore: Add note to readme about HMR with HTTP2 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d1f1430..1282f7e 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,8 @@ If `true`, will enable [`Hot Module Replacement`](https://webpack.js.org/concept _Note: If the build process generates errors, the client (browser) will not be notified of new changes and no HMR will be performed. Errors must be resolved before HMR can proceed._ +_Note: If using in combination with `http2`, the `http2` option `allowHTTP1` must be enabled for the HMR WS connection to work._ + ### `host` Type: `String | Promise`
Default: `::` for IPv6, `127.0.0.1` for IPv4 @@ -151,6 +153,8 @@ Type: `boolean` | [`http2` options](https://nodejs.org/api/http2.html#http2_http If set, this option will instruct the server to enable HTTP2. Properties for this option should correspond to [HTTP2 options][http2] or [HTTP2 SSL options][http2tls]. +_Note: If using in combination with `hmr`, the option `allowHTTP1` must be enabled for the HMR WS connection to work._ + ### `https` Type: `Object`
Default: `null`