Skip to content

Commit cafd67b

Browse files
committed
Fixed error in build script
1 parent 80ae560 commit cafd67b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: tools/build/index.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,17 @@ function minsvg(data: string): string {
9292
/* Optimize SVG */
9393
const result = optimize(data, {
9494
plugins: [
95-
"preset-default",
96-
{ name: "removeDimensions", active: true },
97-
{ name: "removeViewBox", active: false }
95+
{
96+
name: "preset-default",
97+
params: {
98+
overrides: {
99+
removeViewBox: false
100+
}
101+
}
102+
},
103+
{
104+
name: "removeDimensions"
105+
}
98106
]
99107
})
100108

0 commit comments

Comments
 (0)