From a03b533d31dee3d6d80ef2077dfb064530e4961d Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 10 Oct 2022 19:33:59 +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 82cfcad..903694e 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -209,7 +209,7 @@ export default function createServer(root = '', conf = {}) { res.setHeader('content-type', MIME_TYPES[ext]) code = fs.cat(join(root, pathname)) if (code === null) { - console.error(pathnam, '文件不存在') + console.error(pathname, '文件不存在') res.writeHead(404, 'Not Found') res.end('') return diff --git a/package.json b/package.json index 3b8d323..ae0ca27 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bytedo/vue-live", "type": "module", - "version": "0.0.3", + "version": "0.0.4", "bin": { "vue-live": "index.js" },