diff --git a/lib/dev.js b/lib/dev.js index 5966743..616337b 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -85,7 +85,7 @@ export default function createServer(root = '', conf = {}) { let page = conf.pages[pageName] let entry = fs.cat(page.entry).toString() - let html = fs.cat(join(process.env.PWD, 'index.html')).toString() + let html = fs.cat(join(process.cwd(), 'index.html')).toString() entry = parseJs(entry, conf.imports, { IS_MPA, currentPage }) diff --git a/package.json b/package.json index a9f095b..fc1cb5b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bytedo/vue-live", "type": "module", - "version": "0.0.11", + "version": "0.0.12", "bin": { "vue-live": "index.js" },