From cafd67b7385077233ab2b9f7b245080c96a986d2 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 23 Aug 2024 12:30:51 +0200 Subject: [PATCH] Fixed error in build script --- tools/build/index.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/build/index.ts b/tools/build/index.ts index a33b7ff17..a820ae1dc 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" + } ] })