0.2.4 • Published 2 years ago

@jeshix/esbuild-plugin-nodemon v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

esbuild-plugin-nodemon

An esbuild plugin for watch file changes via nodemon

Install

npm install --save-dev nodemon @jeshix/esbuild-plugin-nodemon

or

yarn add --dev nodemon @jeshix/esbuild-plugin-nodemon

Usage example

const { build } = require("esbuild");
const { pluginNodemon } = require("@jeshix/esbuild-plugin-nodemon");

build({
  entryPoints: ["app.js"],
  watch: true,
  plugins: [
    pluginNodemon({
      // config
    }),
  ],
});

Note

Plugin works only in watch mode Plugin will set bundle option to true and store output files in its directory, if no nodemon.script path will be provided

Configuration

OptionDescriptionTypeDefault value
clearConsoleClear console before every rebuildBooleantrue
nodemonNodemon settingsObject{}

License

MIT

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago