修改process.env.PWD为process.cwd()
parent
e6af6842a5
commit
388465842c
|
@ -19,7 +19,7 @@ export default function compile(root = '', dist = '', conf = {}) {
|
||||||
const LEGACY_MODE = !!conf.legacy
|
const LEGACY_MODE = !!conf.legacy
|
||||||
|
|
||||||
let timeStart = Date.now()
|
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
|
let list = fs
|
||||||
.ls(SOURCE_DIR, true)
|
.ls(SOURCE_DIR, true)
|
||||||
|
|
Loading…
Reference in New Issue