minifiers: Do not strip IE conditional statements

Fixes #5089
This commit is contained in:
Bjørn Erik Pedersen 2018-08-18 11:16:34 +02:00
parent 6746826689
commit 5a0ee2b934
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -65,7 +65,8 @@ func (m Client) Minify(mediatype media.Type, dst io.Writer, src io.Reader) error
func New(mediaTypes media.Types, outputFormats output.Formats) Client {
m := minify.New()
htmlMin := &html.Minifier{
KeepDocumentTags: true,
KeepDocumentTags: true,
KeepConditionalComments: true,
}
// We use the Type definition of the media types defined in the site if found.