修改process.env.PWD为process.cwd()

pull/1/head
yutent 2023-05-22 19:29:02 +08:00
parent e6af6842a5
commit 388465842c
1 changed files with 1 additions and 1 deletions

View File

@ -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)