chore: allow dynamic set port (#389)
This commit is contained in:
		@@ -7,10 +7,13 @@ function resolve(dir) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const name = defaultSettings.title || 'vue Admin Template' // page title
 | 
					const name = defaultSettings.title || 'vue Admin Template' // page title
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// If your port is set to 80,
 | 
					// If your port is set to 80,
 | 
				
			||||||
// use administrator privileges to execute the command line.
 | 
					// use administrator privileges to execute the command line.
 | 
				
			||||||
// For example, Mac: sudo npm run
 | 
					// For example, Mac: sudo npm run
 | 
				
			||||||
const port = 9528 // dev port
 | 
					// You can change the port by the following methods:
 | 
				
			||||||
 | 
					// port = 9528 npm run dev OR npm run dev --port = 9528
 | 
				
			||||||
 | 
					const port = process.env.port || process.env.npm_config_port || 9528 // dev port
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// All configuration item explanations can be find in https://cli.vuejs.org/config/
 | 
					// All configuration item explanations can be find in https://cli.vuejs.org/config/
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user