vite-plugin-restart-2
v0.4.9
Published
Custom files/globs to restart Vite server
Maintainers
Readme
Usage
Install
npm i vite-plugin-restart-2 -D # yarn add vite-plugin-restart-2 -DAdd it to vite.config.js
// vite.config.js
import ViteRestart from 'vite-plugin-restart-2'
export default {
plugins: [
ViteRestart({
restart: [
'my.config.[jt]s',
],
eventsToWatch: ['add', 'unlink']
})
],
}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 © 2025 Kathiravan K
