@hollow-kit/vite
v1.0.1
Published
Vite plugin for zero-config skeleton hollow capture. Part of [Hollow Kit](https://github.com/mosaiqo/hollow-kit).
Readme
@hollow-kit/vite
Vite plugin for zero-config skeleton hollow capture. Part of Hollow Kit.
Installation
pnpm add -D @hollow-kit/viteUsage
// vite.config.ts
import { hollowKit } from '@hollow-kit/vite'
export default defineConfig({
plugins: [vue(), hollowKit()],
})Hollows are captured automatically when you run pnpm dev.
Options
| Option | Default | Description |
|--------|---------|-------------|
| outDir | src/hollows | Output directory |
| breakpoints | [375, 768, 1280] | Viewport widths |
| framework | auto-detected | vue, react, or svelte |
| watch | false | Re-capture on file changes |
| watchDebounce | 2000 | Debounce delay (ms) |
License
MIT
