hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 7ed22e9fb6a5b74c52ae6054b843b8c64e83f4b6
parent fb974ae87f82dd9aa4c543ecb719ee15bf6a944d
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 23 Jan 2020 17:03:23 +0100

Revert to minify v2.6.1

Closes #6791

Diffstat:
Mgo.mod | 2+-
Mminifiers/minifiers.go | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/go.mod b/go.mod
@@ -51,7 +51,7 @@ require (
 	github.com/spf13/jwalterweatherman v1.1.0
 	github.com/spf13/pflag v1.0.5
 	github.com/spf13/viper v1.6.1
-	github.com/tdewolff/minify/v2 v2.7.2
+	github.com/tdewolff/minify/v2 v2.6.1
 	github.com/yuin/goldmark v1.1.21
 	github.com/yuin/goldmark-highlighting v0.0.0-20191202084645-78f32c8dd6d5
 	go.opencensus.io v0.22.0 // indirect
diff --git a/minifiers/minifiers.go b/minifiers/minifiers.go
@@ -72,8 +72,8 @@ func New(mediaTypes media.Types, outputFormats output.Formats) Client {
 	}
 
 	cssMin := &css.Minifier{
-		Precision: 0,
-		KeepCSS2:  true,
+		Decimals: -1,
+		KeepCSS2: true,
 	}
 
 	// We use the Type definition of the media types defined in the site if found.