From 27a76a864361ab431377f2cd60a07820b9c6ec70 Mon Sep 17 00:00:00 2001 From: hequan_waynaqua <1669738430@qq.com> Date: Wed, 12 Aug 2020 19:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - vue.config.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b00b2e9..8b6cc97 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ }, "scripts": { "dev": "vue-cli-service serve", - "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" diff --git a/vue.config.js b/vue.config.js index 09864cb..9509f6b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,7 @@ 'use strict' const path = require('path') +const port = process.env.port || process.env.npm_config_port || 4949 const mockUrl = 'http://localhost:82' function resolve (dir) { @@ -15,7 +16,7 @@ module.exports = { lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false, devServer: { - port: 8099, + port: port, open: true, overlay: { warnings: false,