wite-plugin-restart
Custom files/globs to restart Wite server
Usage
Install
npm i wite-plugin-restart -D # yarn add wite-plugin-restart -D
Add it to wite.config.js
// wite.config.js
import WiteRestart from 'wite-plugin-restart'
export default {
plugins: [
WiteRestart({
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 'wite'
License
MIT License