Skip to content

The official Voby plugin for Vite.

License

Notifications You must be signed in to change notification settings

vobyjs/voby-vite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voby Vite

The official Voby plugin for Vite.

Install

npm install --save voby-vite

Usage

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

Packages

No packages published