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)