From 17a13918c2ce6d97db79f29e865ae51cd63eca1b Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 4 Jun 2022 02:28:53 +0200 Subject: [PATCH] Fix build: exempt socialImage from having to be a pure svg --- scripts/generateLayerOverview.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index aa9f612b2b..46de9cb8c5 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -120,6 +120,10 @@ class LayerOverviewUtils { if(path.indexOf("assets/SocialImageTemplate") >= 0){ continue } + + if(path.indexOf("assets/SocialImage") >= 0){ + continue + } const contents = readFileSync(path, "UTF8") if (contents.indexOf("data:image/png;") >= 0) { console.warn("The SVG at " + path + " is a fake SVG: it contains PNG data!")