Skip to content

Commit

Permalink
fix: properly strip vpi-social css declaration in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jan 2, 2025
1 parent 8a5e8ea commit c61182a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit c61182a

Please sign in to comment.