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

Enhancement request: Custom url for --open flag #739

Closed
bdwain opened this issue Jan 13, 2017 · 5 comments
Closed

Enhancement request: Custom url for --open flag #739

bdwain opened this issue Jan 13, 2017 · 5 comments

Comments

@bdwain
Copy link
Contributor

bdwain commented Jan 13, 2017

Would it be possible to add the ability to specify a custom url to open in the browser with the --open flag?

webpack-dev-server --host 0.0.0.0 --open somealias.com

i sometimes use an alias for localhost to communicate what environment i'd like my app to run in.

@SpaceK33z
Copy link
Member

Have you tried using --public somealias.com? Not sure if it fits your use-case.

@bdwain
Copy link
Contributor Author

bdwain commented Jan 17, 2017

i think that just affects the code that webpack injects into the page to talk to the dev server. I was looking for a way to open somealias.come in the browser when the page opens, but i'd still like to have the host be 0.0.0.0 so other computers on my network can access my dev server.

@SpaceK33z
Copy link
Member

Okay, fair enough. The PR #725 attempts to fix this, but only for localhost. Could you perhaps file a PR to do it with the --public flag? I'll close #725 then.

@bdwain
Copy link
Contributor Author

bdwain commented Jan 17, 2017

sure i can do that

@shellscape
Copy link
Contributor

It appears that #749 fixed this issue, so closing. please ping me if that's not the case and we'll reopen the discussion.

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

No branches or pull requests

3 participants