Skip to content

Specify custom WebpackDevServer url for webpackHotDevClient #1936

Description

@sktt

Would you be interested in having the possibility of setting a different url for WebpackDevServer than the current window.location ? see https://github.com/facebookincubator/create-react-app/blob/master/packages/react-dev-utils/webpackHotDevClient.js#L129

In my project I have a different server that serves the react-app bundle. Because of this, I am not able to use webpackHotDevClient with its current configuration. This is because the webpackHotDevClient assumes the app runs from the same location as the WebpackDevServer.

webpack-dev-server/client allows for this by using the magical constant __resourceQuery https://github.com/webpack/webpack-dev-server/blob/master/client/index.js#L22

If you're interested I'd be happy to open a pr for with.

Thank you

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