shithub: hugo

Download patch

ref: 5a0ee2b934e38d596da0f9742361f81c1221e3d5
parent: 6746826689faca5ca09f46725501dceff1a0ebbc
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Aug 18 07:16:34 EDT 2018

minifiers: Do not strip IE conditional statements

Fixes #5089

--- a/minifiers/minifiers.go
+++ b/minifiers/minifiers.go
@@ -65,7 +65,8 @@
 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.