--minify for custom outputs

Is there any control for minification?

How to minify a custom generated ATOM feed ?

MediaType             = "application/atom+xml"
suffix                = "xml"

This does not work for /feed.xml

It works for my JSON /feed.json and for the /sitemap.xml

MediaType             = "application/json"
suffix                = "json"
2 Likes

Currently no. Hugo uses media type definitions to map minifiations, but the current implementation is a little limited, as your example shows. I will improve this shortly:

1 Like