open-index/open-npm huggingface dataset:
npm package: @next-font/plugin-vite
Description: Vite plugin for next/font (@next/font)
Latest version: 1.5.2
Deprecated: Use vite-plugin-next-font

## Next Font for Vite

`next/font` (or [`next-font`](https://npmjs.org/package/next-font)) for Vite projects

### Install

```
npm install @next-font/plugin-vite
```

### Usage

Vite config file:

```js
import { defineConfig } from 'vite';
import nextFont from '@next-font/plugin-vite';

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

> You can use `next/font`, `@next/font`, or `next-font` when loading fonts, and it will work with this plugin