Hugo minify changes SVG inside HTML

Hugo --minify converts svg LINE to svg PATH and that does not work.

Can I skip minification of SVGs?

this is super-annoying

Can you please file a bug report at https://github.com/tdewolff/minify please? Also add the SVG file that gets mangled. It should be perfectly find to transform line into path, but there may be a subtle bug.

This issue should be fixed now by https://github.com/tdewolff/minify/commit/c05f24e69ab5bdc4ba8d8d96a38408ee1e7f7be8. Let me know if this solves it for you.

5 Likes