Skip to content

Commit c61182a

Browse files
committed
fix: properly strip vpi-social css declaration in debug mode
1 parent 8a5e8ea commit c61182a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/node/build/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function build(
140140
varName: 'icon',
141141
format: process.env.DEBUG ? 'expanded' : 'compressed',
142142
mode: 'mask'
143-
}).replace(/.*?}/, '')
143+
}).replace(/[^]*?}\n*/, '')
144144

145145
fs.writeFileSync(path.join(siteConfig.outDir, 'vp-icons.css'), iconsCss)
146146
})

0 commit comments

Comments
 (0)