Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/natsuneko-laboratory/vite-plugin-next-directives
- Owner: natsuneko-laboratory
- License: mit
- Created: 2024-06-20T15:50:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T03:50:32.000Z (7 months ago)
- Last Synced: 2024-09-23T20:18:10.394Z (4 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)