适配pwa开发
parent
c1ccba6103
commit
d40719b769
|
@ -202,6 +202,8 @@ export default async function createServer(root = '', conf = {}) {
|
|||
|
||||
break
|
||||
|
||||
case 'webmanifest':
|
||||
case 'json':
|
||||
case 'png':
|
||||
case 'jpg':
|
||||
case 'jpeg':
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue