Skip to content

Quickstart

The @nhtio/vite-plugins package is designed to be quickly integrated into any vite project

Installation

Install @nhtio/vite-plugins directly from your preferred package manager using one of the following commands:

sh
npm i @nhtio/vite-plugins -D
sh
pnpm add @nhtio/vite-plugins -D
sh
yarn add @nhtio/vite-plugins -D

Usage

In your vite configuration (typically vite.config.mts) import the desired plugin and add it to the plugins array of your configuration definition.

typescript
import { dts } from '@nhtio/vite-plugins/dts'

export default {
    ...
    plugins: [
        ...
        dts(...)
        ...
    ]
    ...
}

Available Plugins

See the API Documentation for a comprehensive list of plugins provided