Skip to content

Commit

Permalink
Better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Jan 25, 2025
1 parent ac19c7d commit 6a33385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-dogs-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vite-plugin-pagefind": patch
---

Chore: Slighly better logs.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ function pagefindDevelop(options: PagefindDevelopOptions = {}) {
return;
}
const command = `${resolvedCommand.command} ${resolvedCommand.args.join(" ")}`;
log(`Building site using "${command}"...`);
log(`Building with "${command}"...`);
execSync(command, {
cwd: config.root,
});
log(`Successfully build with "${command}."`);
}
function copyBundle() {
log(`Copying bundle to "${assetsDirectory}"...`);
Expand All @@ -95,6 +96,7 @@ function pagefindDevelop(options: PagefindDevelopOptions = {}) {
recursive: true,
},
);
log(`Successfully copied bundle to "${assetsDirectory}."`);
}
switch (developStrategy) {
case "lazy": {
Expand Down

0 comments on commit 6a33385

Please sign in to comment.