Improve minifier MIME type resolution
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 28 Aug 2018 12:18:12 +0000 (14:18 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 28 Aug 2018 15:00:53 +0000 (17:00 +0200)
commitebb56e8bdbfaf4f955326017e40b2805850871e9
tree64935a5bfaeb5b2cc8e5c600ad2403d32d3de65c
parent6b9934a26615ea614b1774770532cae9762a58d3
Improve minifier MIME type resolution

This commit also removes the deprecated `Suffix` from MediaType. Now use `Suffixes` and put the MIME type suffix in the type, e.g. `application/svg+xml`.

Fixes #5093
hugolib/config_test.go
hugolib/page_bundler_test.go
hugolib/site_output_test.go
media/mediaType.go
media/mediaType_test.go
minifiers/minifiers.go
minifiers/minifiers_test.go
output/outputFormat_test.go