Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natsuneko-laboratory/vite-plugin-next-directives

Support use client/server directives in Vite
https://github.com/natsuneko-laboratory/vite-plugin-next-directives

Last synced: 2 months ago
JSON representation

Support use client/server directives in Vite

Awesome Lists containing this project

README

        

# @natsuneko-laboratory/vite-plugin-next-directives

Support use client/server directives in Vite

## Installation

```bash
$ npm install @natsuneko-laboratory/vite-plugin-next-directives
```

## Usage

Add `directives()` to your Vite configuration:

```typescript
// vite.config.ts
import { defineConfig } from "vite";
import { directives } from "@natsuneko-laboratory/vite-plugin-next-directives";

export default defineConfig({
plugins: [...directives()],
});
```

## License

MIT by [@6jz](https://to.natsuneko.com/6jz)