0.1.1 • Published 6 months ago

wite-plugin-restart v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

0.1.1

6 months ago