Skip to content

Commit

Permalink
Set KeepDocumentTags for HTML minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Mar 6, 2020
1 parent 3410162 commit 61e8e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minifier/minifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ var minifier = minify.New()

func init() {
htmlMinify := &html.Minifier{
KeepWhitespace: true,
KeepWhitespace: true,
KeepDocumentTags: true,
}
minifier.AddFunc("text/css", css.Minify)
minifier.Add("text/html", htmlMinify)
Expand Down

0 comments on commit 61e8e79

Please sign in to comment.