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) })