http.minify is a wrapper that implements the tdewolff/minify library as-is - so any problems with the output will need to be fixed in the issue section there.
The Caddy minifier plugin isn’t fit for production use. There’s a whole thread about it here, where people talk about various problems, including how it deletes important tags.
For CSS, it would be much safer to use csso, cssnano, or clean-css, which are all Node packages. Those projects have a lot more focus, energy, and quality (e.g. csso is from Yandex). The Caddy minify plugin is coming from a guy who is trying to build a minifier for HTML, CSS, JS, and SVG mostly by himself, and that’s just not feasible for a production-quality, safe minifier. Plus, he’ll deliberately delete a lot of necessary syntax, which just makes it unusable.
@OdinWeb I don’t think your comments are very fair.
The Caddy minify plugin is coming from a guy who is trying to build a minifier for HTML, CSS, JS, and SVG mostly by himself
The minify plugin is NOT written by the same person as the author of the library that does the actual minifying.
Again, that pronoun is referring to the wrong person.
Before littering multiple threads with accusations, at least make sure you’re accusing the right person. The person your accusations are intended toward in this case (Taco) is an outstanding member of the Caddy community and a code contributor to Caddy itself.