-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
--host argument in CLI #80
Comments
👍 |
Oh, good to know! Would love to see this merged in. And I agree completely about defaulting to |
We are using webpack inside a virtual machine and it would be nice to bind it something else than /edit: Never mind, I just realized the option is already available as of 1.7. Thanks! |
This feature was already merged and released, see: https://github.com/webpack/webpack-dev-server/commits/master (PR #83). |
@Kagami when can we expect a release to NPM? |
I think it was already realesed: https://www.npmjs.com/package/webpack-dev-server (1.7.0) |
@Kagami Ah, fantastic, looks like it just went up. Thanks! |
Eh... I don't think my commit was ready for pulling :) Without actually transporting the hostname to the express server in the listen() call it will probably not bind to another host name. This is probably required in line 114:
I'm sorry for leaving this unfinished. It was just a short attempt but I soon realized that I need a different approach to get the webpack-dev-server up and running. |
It would be very useful to be able to bind the server to something other than
localhost
(0.0.0.0
, for example) to allow other devices on the network to reach the dev server.A common use case would be for testing on mobile devices.
The text was updated successfully, but these errors were encountered: