修复端口被占用时, 根目录传错的bug
parent
b740b76867
commit
a875abb4b9
|
@ -258,7 +258,7 @@ export default async function createServer(root = '', conf = {}) {
|
||||||
'\n'
|
'\n'
|
||||||
)
|
)
|
||||||
conf.devServer.port = PORT + 1
|
conf.devServer.port = PORT + 1
|
||||||
createServer(SOURCE_DIR, conf)
|
createServer(root, conf)
|
||||||
})
|
})
|
||||||
.on('listening', _ => {
|
.on('listening', _ => {
|
||||||
console.log('启动成功, 可通过以下地址访问')
|
console.log('启动成功, 可通过以下地址访问')
|
||||||
|
|
Loading…
Reference in New Issue