mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
media: Rename application/javascript, application/typescript to text/javascript etc.
The former is deprecated. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813
This commit is contained in:
@@ -230,8 +230,8 @@ 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", "jsm", "mjs"})
|
||||
TypeScriptType = newMediaType("application", "typescript", []string{"ts"})
|
||||
JavascriptType = newMediaType("text", "javascript", []string{"js", "jsm", "mjs"})
|
||||
TypeScriptType = newMediaType("text", "typescript", []string{"ts"})
|
||||
TSXType = newMediaType("text", "tsx", []string{"tsx"})
|
||||
JSXType = newMediaType("text", "jsx", []string{"jsx"})
|
||||
|
||||
|
Reference in New Issue
Block a user