Function: tomekit()

function tomekit({ config, types }?: TomekitOptions): Plugin;

Defined in: vite.ts:52

The Vite plugin that loads your collections and serves them as tomekit/content.

Content is validated at build time, so a broken file fails vite build; in dev it is reported and left out.

Parameters

{ config, types }?

TomekitOptions

Returns

Plugin

Example

// vite.config.ts
import { tomekit } from "tomekit/vite";

export default defineConfig({ plugins: [tomekit()] });