THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

ソースを参照

chore: allow dynamic set port

pull/2357/head
Pan 1年前
コミット
c8039a5ce3
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      vue.config.js

+ 4
- 1
vue.config.js ファイルの表示

@ -7,10 +7,13 @@ function resolve(dir) {
}
const name = defaultSettings.title || 'vue Element Admin' // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
// For example, Mac: sudo npm run
const port = 9527 // dev port
// You can change the port by the following method:
// port = 9527 npm run dev OR npm run dev --port = 9527
const port = process.env.port || process.env.npm_config_port || 9527 // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {

読み込み中…
キャンセル
保存