media: support application/manifest+json
authorRohan Kumar <seirdy@seirdy.one>
Wed, 9 Jun 2021 23:13:46 +0000 (16:13 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 18 Jun 2021 11:11:44 +0000 (13:11 +0200)
commit02f31897b4f7252154850a65c900e88e0b237fa3
tree97a517c98892ec07d9e31e0a20e2c759e89db398
parent402da3f8f327f97302c4b5d69cd4832a94bd189b
media: support application/manifest+json

The standard file extension for Web App Manifest files is
".webmanifest". This commit allows Hugo to recognize .webmanifest files
as "application/manifest+json" files and to minify them using its
JSON minifier.

The .webmanifest file extension is recommended in the w3c spec to
simplify media type registration:
https://www.w3.org/TR/appmanifest/#media-type-registration

Webhint docs are also relevant:
https://webhint.io/docs/user-guide/hints/hint-manifest-file-extension/

Closes #8624
media/mediaType.go
minifiers/minifiers.go
output/outputFormat.go