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

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i wite-plugin-restart

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

18.7 kB

Total Files

6

Last publish

Collaborators

  • nkduy