Skip to content

Commit

Permalink
Merge pull request #31 from Matthijz98/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 authored Feb 6, 2024
2 parents 90983ff + 3bd4c12 commit 8b2af14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-cobras-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-pagefind": patch
---

Add quotes to path so it still works when there are spaces in the path
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function pagefindDevPlugin({
log('Running pagefind...');
const time = await executeMeasured(() =>
execSync(
`pagefind --site ${buildDir} --output-path ${join(publicDir, 'pagefind')}`
`pagefind --site "${buildDir}" --output-path "${join(publicDir, 'pagefind')}"`
)
);
log(`Pagefind completed in ${millisToSeconds(time)}.`);
Expand Down

0 comments on commit 8b2af14

Please sign in to comment.