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

Specifying host and port for the hot module reload server? #223

Description

@jbellmore

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions