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

0.4.0 • Public • Published

vite-plugin-restart

Custom files/globs to restart Vite server



Usage

Install

npm i vite-plugin-restart -D # yarn add vite-plugin-restart -D

Add it to vite.config.js

// vite.config.js
import ViteRestart from 'vite-plugin-restart'

export default {
  plugins: [
    ViteRestart({
      restart: [
        'my.config.[jt]s',
      ]
    })
  ],
}

Changes to my.config.js or my.config.ts will now restart the server automatically.

Motivation

Byebye nodemon -w my.config.js -x 'vite'

License

MIT License © 2021 Anthony Fu

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-restart

Weekly Downloads

11,549

Version

0.4.0

License

MIT

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • antfu