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,