diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-08-18 11:16:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-08-18 11:16:34 +0200 |
commit | 5a0ee2b934e38d596da0f9742361f81c1221e3d5 (patch) | |
tree | 8b2051fda622701a418dd41bcf9152b370b577d2 /minifiers/minifiers.go | |
parent | 6746826689faca5ca09f46725501dceff1a0ebbc (diff) |
minifiers: Do not strip IE conditional statements
Fixes #5089
Diffstat (limited to 'minifiers/minifiers.go')
-rw-r--r-- | minifiers/minifiers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/minifiers/minifiers.go b/minifiers/minifiers.go index eeebcd00f..c2f3ef6df 100644 --- a/minifiers/minifiers.go +++ b/minifiers/minifiers.go @@ -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. |