Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guess server's port from current page. #430

Merged
merged 1 commit into from
Mar 24, 2016
Merged

Guess server's port from current page. #430

merged 1 commit into from
Mar 24, 2016

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Mar 16, 2016

Allow to use port from current page, the same way we allow to use hostname.

This is useful in setups where the webpack server is for instance in a docker container and doesn't know statically on which hostname and port it will be accessed from. It's already possible to use "0.0.0.0" as an address to use current page's hostname. I'm adding the same trick for the port.

The config should then look like this
"webpack-dev-server/client?http://0.0.0.0:0"


This change is Reviewable

@sokra sokra merged commit e5df542 into webpack:master Mar 24, 2016
@sokra
Copy link
Member

sokra commented Mar 24, 2016

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants