add gzip type to support gziped wfa js
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 9s
tronnet/workflows: Code Style -- Web Components / style-web (push) Successful in 15s

This commit is contained in:
alu
2026-09-08 22:02:10 +00:00
parent c816d15b1a
commit ed4cf064e3
7 changed files with 18 additions and 2 deletions
+6
View File
@@ -15,6 +15,7 @@ import (
// defines mime type and associated minifier
type MimeType struct {
Type string
Encoding string
Minifier func(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error
}
@@ -48,6 +49,11 @@ var MimeTypes = map[string]MimeType{
Type: "application/wasm",
Minifier: nil,
},
"gz": {
Type: "application/wasm",
Encoding: "gzip",
Minifier: nil,
},
"*": {
Type: "text/plain",
Minifier: nil,