From e9a9cadd3b3513739d8412a7d21b641f064e35bd Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 21 Oct 2022 14:39:15 +0800 Subject: [PATCH] fixed --- lib/dev.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" },