Skip to content

Commit

Permalink
Update vite-plugin-pagefind (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 authored Jan 21, 2025
1 parent e713eba commit 28dae78
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 41 deletions.
123 changes: 95 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sites/floating-ui-svelte.vercel.app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"build": "vite build && pagefind",
"build": "vite build && pagefind --site .vercel/output/static",
"build:watch": "vite dev",
"sync": "svelte-kit sync"
},
Expand All @@ -23,6 +23,6 @@
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"vite": "^6.0.6",
"vite-plugin-pagefind": "^0.3.0"
"vite-plugin-pagefind": "^1.0.1"
}
}
9 changes: 0 additions & 9 deletions sites/floating-ui-svelte.vercel.app/pagefind.json

This file was deleted.

10 changes: 8 additions & 2 deletions sites/floating-ui-svelte.vercel.app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import pagefind from "vite-plugin-pagefind";
import { pagefind } from "vite-plugin-pagefind";

export default defineConfig({
plugins: [sveltekit(), pagefind()],
plugins: [
sveltekit(),
pagefind({
outputDirectory: ".vercel/output/static",
assetsDirectory: "static",
}),
],
});

0 comments on commit 28dae78

Please sign in to comment.