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