-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
配置devServer.open; true。Chrome浏览器会自动打开两次。 #2205
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
解决了吗 |
估计是版本兼容问题,重新用vue-cli搭建就可以了。 |
我也遇到这个问题了. |
同遇到 |
我也遇到了这个问题,我的做法是将 https://cli.vuejs.org/zh/guide/cli-service.html#vue-cli-service-serve |
@bot960528 ,我之后用vue-cli重新搭建了初始环境, vue.config.js配置devServer: { open: true },浏览器正确打开,之后把代码导入,依赖是命令行安装的,没有直接配置,浏览器正确打开。完了对比package-lock.json,觉得可能是版本问题。 |
官方之前就修复了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question(提问)
Steps to reproduce(问题复现步骤)
vue.config.is 中配置
devServer: {
port: port,
open: true,
overlay: {
warnings: false,
errors: true
},
如果open: true,Chrome会自动打开两次,一次是刚开始编译时,第二次是编译完成后。如果open: false,Chrome不会自动打开。
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: