Update the application/javascript media type - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3036d0ac9a3b28c258de4d090ccff2c4bd7e109f
(DIR) parent 6a238a7276c6ef40772a65bf2f262e6b4ae2da1e
(HTM) Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Wed, 9 Feb 2022 22:51:37 -0800
Update the application/javascript media type
Add jsm and mjs extensions.
Closes #9483
Diffstat:
M media/mediaType.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/media/mediaType.go b/media/mediaType.go
@@ -229,7 +229,7 @@ var (
SASSType = newMediaType("text", "x-sass", []string{"sass"})
CSVType = newMediaType("text", "csv", []string{"csv"})
HTMLType = newMediaType("text", "html", []string{"html"})
- JavascriptType = newMediaType("application", "javascript", []string{"js"})
+ JavascriptType = newMediaType("application", "javascript", []string{"js", "jsm", "mjs"})
TypeScriptType = newMediaType("application", "typescript", []string{"ts"})
TSXType = newMediaType("text", "tsx", []string{"tsx"})
JSXType = newMediaType("text", "jsx", []string{"jsx"})