From c61182ab278350699b5d50461788478a340790aa Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 2 Jan 2025 18:17:51 +0530 Subject: [PATCH] fix: properly strip vpi-social css declaration in debug mode --- src/node/build/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/build/build.ts b/src/node/build/build.ts index 17e98d0ebe94..208499954262 100644 --- a/src/node/build/build.ts +++ b/src/node/build/build.ts @@ -140,7 +140,7 @@ export async function build( varName: 'icon', format: process.env.DEBUG ? 'expanded' : 'compressed', mode: 'mask' - }).replace(/.*?}/, '') + }).replace(/[^]*?}\n*/, '') fs.writeFileSync(path.join(siteConfig.outDir, 'vp-icons.css'), iconsCss) })