This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Description
Is it possible to specify the host and port used by the dev server that hosts the hot module reload? From what I am seeing the HMR server is hosted on a random port at startup and 302 redirects are used by the middleware to tell the application where to find the actual files produced by the web pack hot reloading.
This is difficult in a situation like running inside of docker containers as it is impossible to know which port should be forwarded when using docker/docker compose so the 302 redirects will always fail.
From what I can tell the only way to specify the host and port for the web pack dev server is through the cli arguments and does not appear to be able to be set in the config file unfortunately.
I would propose the host and port be added to the WebPackDevMiddlewareOptions so that they can be then passed in when the node process hosting the dev server is started.
Unless I am missing something and there already is this capability?
Thanks!