Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8e609cf

Browse files
committed
feat(WebServer): Add support for JavaScript modules
1 parent d673d26 commit 8e609cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎libraries/WebServer/src/detail/mimetable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const Entry mimeTable[maxType] = {
1010
{".css", "text/css"},
1111
{".txt", "text/plain"},
1212
{".js", "application/javascript"},
13+
{".mjs", "text/javascript"},
1314
{".json", "application/json"},
1415
{".png", "image/png"},
1516
{".gif", "image/gif"},

‎libraries/WebServer/src/detail/mimetable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum type {
99
css,
1010
txt,
1111
js,
12+
mjs,
1213
json,
1314
png,
1415
gif,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /