Skip to content

Commit

Permalink
fix(export): don't clear dir on png exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2021
1 parent 46e2029 commit 73e5be8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/slidev/node/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export async function exportSlides({
await fs.writeFile(output, buffer)
}
else if (format === 'png') {
await fs.emptyDir(output)
for (const i of pages) {
await go(i)
await page.screenshot({
Expand Down

0 comments on commit 73e5be8

Please sign in to comment.