diff --git a/lib/dev.js b/lib/dev.js index 12cac9e..6567d86 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -258,7 +258,7 @@ export default async function createServer(root = '', conf = {}) { '\n' ) conf.devServer.port = PORT + 1 - createServer(SOURCE_DIR, conf) + createServer(root, conf) }) .on('listening', _ => { console.log('启动成功, 可通过以下地址访问')