From 61e8e794a30fba7875946ce6ed015157aaf22692 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 6 Mar 2020 23:25:29 +0100 Subject: [PATCH] Set KeepDocumentTags for HTML minifier --- minifier/minifier.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minifier/minifier.go b/minifier/minifier.go index a100854..fb85511 100644 --- a/minifier/minifier.go +++ b/minifier/minifier.go @@ -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)