From a875abb4b90bea7d50e635f5efdbc9495633e343 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 21 Feb 2023 18:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=AF=E5=8F=A3=E8=A2=AB?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E6=97=B6,=20=E6=A0=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=BC=A0=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('启动成功, 可通过以下地址访问')