aboutsummaryrefslogtreecommitdiffhomepage
path: root/minifiers
diff options
context:
space:
mode:
authorAlexandros <[email protected]>2018-09-13 09:16:20 +0300
committerBjørn Erik Pedersen <[email protected]>2018-09-13 08:16:20 +0200
commit9b26b5487b5c5142fe9fb58681fe7d1dac95a291 (patch)
tree4e7fbcce97744b7ee764e138ce61716239edc8b9 /minifiers
parent3dafe206e31bb92f27802a04bf9159cbc20af234 (diff)
downloadhugo-9b26b5487b5c5142fe9fb58681fe7d1dac95a291.tar.gz
hugo-9b26b5487b5c5142fe9fb58681fe7d1dac95a291.zip
minifiers: Set minifier to KeepEndTags
See: https://github.com/tdewolff/minify/blob/948b6490cf3cacab5f4d7474104c3d21bf6eda46/README.md#L171
Diffstat (limited to 'minifiers')
-rw-r--r--minifiers/minifiers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/minifiers/minifiers.go b/minifiers/minifiers.go
index 07eec34ce..be453d811 100644
--- a/minifiers/minifiers.go
+++ b/minifiers/minifiers.go
@@ -68,6 +68,7 @@ func New(mediaTypes media.Types, outputFormats output.Formats) Client {
KeepDocumentTags: true,
KeepConditionalComments: true,
KeepEndTags: true,
+ KeepDefaultAttrVals: true,
}
// We use the Type definition of the media types defined in the site if found.