I think Hugo and/or minify uses the type attribute to decide if that HTML tag should be minified. And probably “ld+json” types are not whitelisted for minification? @bep? @tdewolff?
type