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.
- Host: GitHub
- URL: https://github.com/vobyjs/voby-vite
- Owner: vobyjs
- License: mit
- Created: 2022-05-07T08:35:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T12:48:57.000Z (about 2 years ago)
- Last Synced: 2025-09-20T04:55:20.246Z (9 months ago)
- Topics: bundler, plugin, vite, voby
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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