diff --git a/tools/build/index.ts b/tools/build/index.ts index a33b7ff1750..a820ae1dc97 100644 --- a/tools/build/index.ts +++ b/tools/build/index.ts @@ -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" + } ] })