@vue/cli 已经修复了打开两次浏览器问题

This commit is contained in:
于博文 2020-05-13 10:26:43 +08:00
parent 56a0361b5f
commit 4f5d9ef536
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"author": "Sunnie <sunniejs@163.com>", "author": "Sunnie <sunniejs@163.com>",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve --open", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"stage": "vue-cli-service build --mode staging", "stage": "vue-cli-service build --mode staging",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"

View File

@ -45,7 +45,7 @@ module.exports = {
productionSourceMap: false, // 如果你不需要生产环境的 source map可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, // 如果你不需要生产环境的 source map可以将其设置为 false 以加速生产环境构建。
devServer: { devServer: {
port: 9020, // 端口 port: 9020, // 端口
open: false, // 启动后打开浏览器 open: true, // 启动后打开浏览器
overlay: { overlay: {
// 当出现编译器错误或警告时,在浏览器中显示全屏覆盖层 // 当出现编译器错误或警告时,在浏览器中显示全屏覆盖层
warnings: false, warnings: false,