Skip to content

Specify custom WebpackDevServer url for webpackHotDevClient #1936

Closed
@sktt

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

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