Vite

srvkit can be used with Vite as a plugin.

Installation

Install this package as a dev dependency in the project:

npm
yarn
pnpm
bun
npm i -D @srvkit/vite

Configuration

Add the following Vite configuration:

vite.config.js
import { defineConfig } from "vite";

import { srvkit } from "@srvkit/vite/plugin";

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