feat: add ability to serve static by using dynamic imports (#197)

* feat: add ability to serve static by using dynamic imports

* serveStaticViaImport: make manifest optional

* serveStaticViaImport: add error log
This commit is contained in:
dswbx
2025-07-22 20:13:10 +02:00
committed by GitHub
parent ea372a8125
commit 1ec3ba0e92
5 changed files with 62 additions and 4 deletions
+2
View File
@@ -26,9 +26,11 @@ export const M = new Map<string, string>([
["eps", c.a("postscript")],
["epub", c.a("epub+zip")],
["ini", c.t()],
["ico", c.i("vnd.microsoft.icon")],
["jar", c.a("java-archive")],
["jsonld", c.a("ld+json")],
["jpg", c.i("jpeg")],
["js", c.t("javascript")],
["log", c.t()],
["m3u", c.t()],
["m3u8", c.a("vnd.apple.mpegurl")],