diff --git a/.changeset/smooth-taxis-walk.md b/.changeset/smooth-taxis-walk.md new file mode 100644 index 0000000..5f84b22 --- /dev/null +++ b/.changeset/smooth-taxis-walk.md @@ -0,0 +1,5 @@ +--- +"vite-plugin-pagefind": patch +--- + +Better logs diff --git a/src/dev.ts b/src/dev.ts index 6872384..19abc0c 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -15,10 +15,11 @@ export default function dev(): PluginOption { switch (pagefind_config.dev_strategy) { case 'eager': { - console_log('Building pagefind...'); + console_log('Building site...'); execSync(pagefind_config.build_command, { cwd: vite_config.root }); + console_log(`Copying pagefind bundle to assets dir...`); await promises.cp( resolve(pagefind_config.site_dir, 'pagefind'), @@ -38,7 +39,7 @@ export default function dev(): PluginOption { ); if (!pagefind_in_site) { - console_log('Building pagefind...'); + console_log('Building site...'); execSync(pagefind_config.build_command, { cwd: vite_config.root });