1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

change sit-preview port

This commit is contained in:
Pan 2017-05-03 13:01:21 +08:00
parent 316c23c885
commit c82343ac01

View File

@ -29,9 +29,10 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
}) + '\n\n')
console.log(chalk.cyan(' Build complete.\n'))
console.log('> Listening at ' + 'http://localhost:9528' + '\n')
if(process.env.npm_config_preview){
server.start({
port: 80,
port: 9528,
directory: './dist',
file: '/index.html'
});