voby-vite
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i voby-vite

    Weekly Downloads

    29

    Version

    1.2.5

    License

    none

    Unpacked Size

    8.82 kB

    Total Files

    11

    Last publish

    Collaborators

    • fabiospampinato