Commit c96151de authored by Pan's avatar Pan

refine build.js

parent 226a005c
...@@ -29,14 +29,13 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { ...@@ -29,14 +29,13 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
}) + '\n\n') }) + '\n\n')
console.log(chalk.cyan(' Build complete.\n')) console.log(chalk.cyan(' Build complete.\n'))
console.log('> Listening at ' + 'http://localhost:9528' + '\n')
if(process.env.npm_config_preview){ if(process.env.npm_config_preview){
server.start({ server.start({
port: 9528, port: 9528,
directory: './dist', directory: './dist',
file: '/index.html' file: '/index.html'
}); });
opn('http://kushnerpreview.wallstreetcn.com/') console.log('> Listening at ' + 'http://localhost:9528' + '\n')
} }
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment