Skip to content

Commit

Permalink
fix: build pdf rendering, close #341
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 13, 2021
1 parent a349453 commit 736688e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slidev/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function build(
if (!fs.existsSync(redirectsPath))
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200\n`, 'utf-8')

if (options.data.config.download === true || options.data.config.download === 'auto') {
if ([true, 'true', 'auto'].includes(options.data.config.download)) {
const { exportSlides } = await import('./export')

const port = 12445
Expand All @@ -104,6 +104,7 @@ export async function build(
sirv(config.build.outDir, {
etag: true,
single: true,
dev: true,
}),
)
server.listen(port)
Expand Down

0 comments on commit 736688e

Please sign in to comment.