# tomekit

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

> Every page: https://tomekit.aayush.cv/llms.txt

```ts
function tomekit({ config }?: TomekitOptions): Plugin;
```

Defined in: [vite.ts:39](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/vite.ts#L39)

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 }?

[`TomekitOptions`](https://tomekit.aayush.cv/api-vite/interfaces/TomekitOptions/index.md)

## Returns

`Plugin`

## Example

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

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