mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-10-06 11:29:58 +08:00
@vue/cli 已经修复了打开两次浏览器问题
This commit is contained in:
parent
56a0361b5f
commit
4f5d9ef536
@ -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"
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user