webpack-hot-middleware icon indicating copy to clipboard operation
webpack-hot-middleware copied to clipboard

Unable to use dynamicPublicPath and specify port

Open slowselfip opened this issue 7 years ago • 1 comments

Hello,

I have a use case where I need to use the dynamicPublicPath and have the ability to specify a custom port.

So, something like this: 'webpack-hot-middleware/client?dynamicPublicPath=true&path=__webpack_hmr&port=3000'

If my dynamic public path is set to /f9c5a3a910/, I'd like the client, with above entry point, to connect to: http://localhost:3000/f9c5a3a910/__webpack_hmr

slowselfip avatar Feb 01 '18 13:02 slowselfip

The simplest way to do this right now would be to try and add the host and port into the dynamic public path in dev mode.

Otherwise I would accept a PR that made this possible, but i’m a bit wary about making the options any more complicated than they already are

glenjamin avatar Feb 01 '18 13:02 glenjamin