From 9f46eca956df6851ad687dd471e0512d982a24c5 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:57:03 +0700 Subject: [PATCH] Minify SVG in generated JS --- build.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.ts b/build.ts index 140d052..fb4ae31 100644 --- a/build.ts +++ b/build.ts @@ -35,6 +35,13 @@ const postProcess = (str: string): string => { // Add ADDITIONAL CODE block str = str.replace('var DEFAULT_FLAGS', '\n/* ADDITIONAL CODE */\n\nvar DEFAULT_FLAGS'); + // Minify SVG + str = str.replaceAll(/= "(