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

https://github.com/vobyjs/voby-vite

The official Voby plugin for Vite.
https://github.com/vobyjs/voby-vite

bundler plugin vite voby

Last synced: 5 months ago
JSON representation

The official Voby plugin for Vite.

Awesome Lists containing this project

README

          

# Voby Vite

The official Voby plugin for [Vite](https://vitejs.dev).

## Install

```sh
npm install --save voby-vite
```

## Usage

```ts
import {defineConfig} from 'vite';
import voby from 'voby-vite';

const config = defineConfig ({
plugins: [
voby ({
hmr: { // HMR-related options
enabled: ( process.env.NODE_ENV !== 'production' ), // Whether HMR is enabled or not
filter: /\.(jsx|tsx)$/ // Regex matching the files containing components to enable HMR for
}
})
]
});

export default config;
```

## License

MIT © Fabio Spampinato