Skip to content

Commit c268707

Browse files
committed
cmd: add importmap JSON minifier, see #812
1 parent 228ca98 commit c268707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/minify/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ func run() int {
506506
m.AddRegexp(regexp.MustCompile("[/+]json$"), &jsonMinifier)
507507
m.AddRegexp(regexp.MustCompile("[/+]xml$"), &xmlMinifier)
508508

509+
m.Add("importmap", &jsonMinifier)
510+
509511
aspMinifier := htmlMinifier
510512
aspMinifier.TemplateDelims = [2]string{"<%", "%>"}
511513
m.Add("text/asp", &aspMinifier)

0 commit comments

Comments
 (0)