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" },