diff --git a/lib/dev.js b/lib/dev.js index 688d6c6..1756197 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -146,9 +146,10 @@ export default async function createServer(root = '', conf = {}) { res.setHeader('content-type', MIME_TYPES.html) res.writeHead(200, USE_HTTPS ? void 0 : 'OK') res.end( - '
注意: 你看到这个页面, 仅在开发时可见。
仅为了方便开发多页应用时访问自己想要修改的页面, 而不需要手动输入地址。
' + '' ) } else { res.setHeader('accept-ranges', 'bytes') @@ -196,6 +197,7 @@ export default async function createServer(root = '', conf = {}) { file = join(SOURCE_DIR, rpath) } } else { + ndex.html file = join(SOURCE_DIR, rpath) } if (!fs.isfile(file)) { diff --git a/package.json b/package.json index 6e95851..807d3c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.1.9", + "version": "1.1.10", "bin": { "fite": "index.js" },