Skip to content

Commit 73e5be8

Browse files
committed
fix(export): don't clear dir on png exporting
1 parent 46e2029 commit 73e5be8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/slidev/node/export.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export async function exportSlides({
125125
await fs.writeFile(output, buffer)
126126
}
127127
else if (format === 'png') {
128-
await fs.emptyDir(output)
129128
for (const i of pages) {
130129
await go(i)
131130
await page.screenshot({

0 commit comments

Comments
 (0)