From 4f5d9ef5360b4ad7271d852bd5b67ac6a3d5582d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E5=8D=9A=E6=96=87?= Date: Wed, 13 May 2020 10:26:43 +0800 Subject: [PATCH] =?UTF-8?q?@vue/cli=20=E5=B7=B2=E7=BB=8F=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BA=86=E6=89=93=E5=BC=80=E4=B8=A4=E6=AC=A1=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vue.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 85e0310..ee474ae 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Sunnie ", "private": true, "scripts": { - "serve": "vue-cli-service serve --open", + "serve": "vue-cli-service serve", "build": "vue-cli-service build", "stage": "vue-cli-service build --mode staging", "lint": "vue-cli-service lint" diff --git a/vue.config.js b/vue.config.js index 638021f..a3a40cd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -45,7 +45,7 @@ module.exports = { productionSourceMap: false, // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 devServer: { port: 9020, // 端口 - open: false, // 启动后打开浏览器 + open: true, // 启动后打开浏览器 overlay: { // 当出现编译器错误或警告时,在浏览器中显示全屏覆盖层 warnings: false,