]> git.maquefel.me Git - brevno-suite/hugo/commit
minifiers: Keep x-bind and blank namespace in SVG minification
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 25 Mar 2026 18:17:11 +0000 (19:17 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 26 Mar 2026 09:49:53 +0000 (10:49 +0100)
commit42289d76f9ccac052c22b84d7024e64cfb0a683b
tree828b2d148a23752822a3eba72093de5b57738a41
parent0c013c2326be1bbebba9a9f89d27072074fc6cc4
minifiers: Keep x-bind and blank namespace in SVG minification

Update tdewolff/minify to v2.24.11 and add "" and "x-bind" to KeepNamespaces
to prevent Alpine.js directives from being stripped in SVGs.

This is a new option in tdewolff/minify v2.24.11, and it is needed to prevent breakage of Alpine.js, and possilby others, directives in SVGs.

Fixes #14669
go.mod
go.sum
minifiers/config.go
minifiers/minifiers_test.go