diff --git a/README.md b/README.md index 90ebd3ee781f8b1ae67d71c83452738da4eb06f2..4db942976ce6fd729502d25da7e2a0ad54ee5829 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,11 @@ yarn lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + +### 命令 +```SH +# 杀死所有node进程 +pkill node +# 查看node进程列表 +ps -ef|grep node +``` \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 523a634b5cb8db6ec16d499b4d92c87d3f8a63ee..e9f038dd8973fa59d1d33dd75ac48d36bc9a0d44 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,10 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, + devServer: { + host: 'localhost', + // port: 8089, + historyApiFallback: true, + allowedHosts: "all" + } })