summaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2019-10-08 23:46:04 -0600
committerBjørn Erik Pedersen <[email protected]>2019-10-09 09:01:08 +0200
commitb401858ebd346c433dd69a260eba7098bded5a30 (patch)
tree72d275c9cb3a74d0f7c78402a8f7bb26a44044cb /hugolib
parent39ed33fcebcde91605e645fd28fd94020b442d97 (diff)
downloadhugo-b401858ebd346c433dd69a260eba7098bded5a30.tar.gz
hugo-b401858ebd346c433dd69a260eba7098bded5a30.zip
deps: Update minify to v2.5.2
- v2.5.1 removes import comments, solving a build error with Go 1.13 in GOPATH mode (used Debian packaging for example) - v2.5.2 no longer converts polyline/rect/polygon/line to path as it has been reported to break a SVG referenced by CSS, see tdewolff/minify#260 The test case for Min SVG in TestResourceChains is updated accordingly. Fixes pocc/tshark.dev#33
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/resource_chain_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/resource_chain_test.go b/hugolib/resource_chain_test.go
index 138e7a4a2..10539d1bb 100644
--- a/hugolib/resource_chain_test.go
+++ b/hugolib/resource_chain_test.go
@@ -342,8 +342,8 @@ Min HTML: {{ ( resources.Get "mydata/html1.html" | resources.Minify ).Content |
b.AssertFileContent("public/index.html", `Min JS: var x;x=5;document.getElementById(&#34;demo&#34;).innerHTML=x*10;`)
b.AssertFileContent("public/index.html", `Min JSON: {"employees":[{"firstName":"John","lastName":"Doe"},{"firstName":"Anna","lastName":"Smith"},{"firstName":"Peter","lastName":"Jones"}]}`)
b.AssertFileContent("public/index.html", `Min XML: <hello><world>Hugo Rocks!</<world></hello>`)
- b.AssertFileContent("public/index.html", `Min SVG: <svg height="100" width="100"><path d="M5 10 20 40z"/></svg>`)
- b.AssertFileContent("public/index.html", `Min SVG again: <svg height="100" width="100"><path d="M5 10 20 40z"/></svg>`)
+ b.AssertFileContent("public/index.html", `Min SVG: <svg height="100" width="100"><path d="M1e2 1e2H3e2 2e2z"/></svg>`)
+ b.AssertFileContent("public/index.html", `Min SVG again: <svg height="100" width="100"><path d="M1e2 1e2H3e2 2e2z"/></svg>`)
b.AssertFileContent("public/index.html", `Min HTML: <html><a href=#>Cool</a></html>`)
}},
@@ -580,7 +580,7 @@ document.getElementById("demo").innerHTML = x * 10;
b.WithSourceFile(filepath.Join("assets", "mydata", "svg1.svg"), `
<svg height="100" width="100">
- <line x1="5" y1="10" x2="20" y2="40"/>
+ <path d="M 100 100 L 300 100 L 200 100 z"/>
</svg>
`)