From 388465842c6b4d98daa23ac4638073a9894b5943 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 22 May 2023 19:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9process.env.PWD=E4=B8=BAproce?= =?UTF-8?q?ss.cwd()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prod.js b/lib/prod.js index 03713f8..60452e6 100644 --- a/lib/prod.js +++ b/lib/prod.js @@ -19,7 +19,7 @@ export default function compile(root = '', dist = '', conf = {}) { const LEGACY_MODE = !!conf.legacy let timeStart = Date.now() - let template = fs.cat(join(process.env.PWD, 'index.html')).toString() + let template = fs.cat(join(process.cwd(), 'index.html')).toString() let list = fs .ls(SOURCE_DIR, true)