1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-23 19:08:25 +02:00

Fixed error in build script

This commit is contained in:
squidfunk 2024-08-23 12:30:51 +02:00
parent 80ae56023b
commit cafd67b738
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -92,9 +92,17 @@ function minsvg(data: string): string {
/* Optimize SVG */
const result = optimize(data, {
plugins: [
"preset-default",
{ name: "removeDimensions", active: true },
{ name: "removeViewBox", active: false }
{
name: "preset-default",
params: {
overrides: {
removeViewBox: false
}
}
},
{
name: "removeDimensions"
}
]
})