
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
vite-plugin-pagefind
Advanced tools
A Vite plugin for easily integrating [Pagefind](https://pagefind.app/) into [Vite](https://vite.dev/) based projects.
A Vite plugin for easily integrating Pagefind into Vite based projects.
Install from npm using your preferred package manager:
pnpm add -D pagefind vite-plugin-pagefind
vite.config:import { defineConfig } from "vite";
import { pagefind } from "vite-plugin-pagefind";
export default defineConfig({
plugins: [
pagefind({
outputDirectory: "<OUTPUT_DIRECTORY>",
assetsDirectory: "<ASSETS_DIRECTORY>",
bundleDirectory: "<BUNDLE_DIRECTORY>",
buildScript: "<BUILD_SCRIPT>",
developStrategy: "<DEVELOP_STRATEGY>",
}),
],
});
pagefind in your package.json:{
"scripts": {
"<BUILD_SCRIPT>": "vite build && pagefind --site \"<OUTPUT_DIRECTORY>\""
}
}
The directory where the build output is located in.
default: 'build'
The directory where the static assets are located in.
default: 'public'
The directory where the pagefind bundle is located in.
default: 'pagefind'
The script that builds the app.
default: 'build'
The indexing strategy used during development:
default: 'lazy'
As well as the plugin, this package also exposes the official Pagefind types:
import type { Pagefind } from "vite-plugin-pagefind/types";
const pagefind: Pagefind = await import("/pagefind/pagefind.js");
FAQs
A Vite plugin for easily integrating [Pagefind](https://pagefind.app/) into [Vite](https://vite.dev/) based projects.
We found that vite-plugin-pagefind demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.