From d40719b769fcc589dc2756ce359adbe09d8deaf5 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 16 Feb 2023 14:54:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dpwa=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dev.js | 2 ++ lib/mime-tpyes.js | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/dev.js b/lib/dev.js index abf1385..977d85f 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -202,6 +202,8 @@ export default async function createServer(root = '', conf = {}) { break + case 'webmanifest': + case 'json': case 'png': case 'jpg': case 'jpeg': diff --git a/lib/mime-tpyes.js b/lib/mime-tpyes.js index 8ff86aa..233cc75 100644 --- a/lib/mime-tpyes.js +++ b/lib/mime-tpyes.js @@ -14,6 +14,7 @@ const MIME_TYPES = { bmp: 'image/x-ms-bmp', js: 'application/javascript;charset=utf-8', json: 'application/json;charset=utf-8', + webmanifest: 'application/json;charset=utf-8', mp3: 'audio/mpeg', ogg: 'audio/ogg', m4a: 'audio/x-m4a',