-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
When vue.config.js set devServer.open to true it will open twice. #4063
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
Comments
It's easy to reproduce.
Since you want to open it in 0.0.0.0 should it be prettified? Removing this validation should close the issue |
I checked that the open function:
|
I'm confused about it too. Is there any solution? |
I don't see the reason for prettyfying the host address. If the user has set one, it should open a browser tab with exactly that. But still, the real bug is in the "open" npm package, not in vue cli. |
Finally, I figure it out. It seems ironicly. |
The bug is not in |
I was wrong. Is there any explanation for this behaviour? |
Previously |
Version
3.8.2
Environment info
Steps to reproduce
vue create test
// create vue.config.js and sets devServer.host to ''0.0.0.0' and sets
devServer.open: true
, Thenyarn serve
// url: http://0.0.0.0:8080 quickly opened but unused
When compiled, url: http://localhost:8080/ opened
What is expected?
At least not pop up twice
What is actually happening?
Pop up twice, and the first time there is no response, the second IP address does not apply
The text was updated successfully, but these errors were encountered: