https://github.com/mast1ff/esbuild-plugin-nodemon
A esbuild plugin to run scripts using Nodemon
https://github.com/mast1ff/esbuild-plugin-nodemon
esbuild nodemon plugin webpack
Last synced: about 1 year ago
JSON representation
A esbuild plugin to run scripts using Nodemon
- Host: GitHub
- URL: https://github.com/mast1ff/esbuild-plugin-nodemon
- Owner: mast1ff
- License: mit
- Created: 2022-08-14T12:36:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-15T10:08:36.000Z (almost 4 years ago)
- Last Synced: 2025-04-18T16:00:23.697Z (about 1 year ago)
- Topics: esbuild, nodemon, plugin, webpack
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esbuild-plugin-nodemon
[](https://www.npmjs.com/package/esbuild-plugin-nodemon)
[](https://github.com/mast1ff/esbuild-plugin-nodemon/actions/workflows/test.yml)
Run and reload scripts with esbuild.
## Usage
```bash
npm install --save-dev esbuild-plugin-nodemon
# or
yarn add -D esbuild-plugin-nodemon
```
```js
const nodemonPlugin = require("esbuild-plugin-nodemon");
esbuild.build({
entryPoints: ["./index.js"],
outfile: "./dist/index.js",
watch: true,
platform: "node",
format: "cjs",
plugins: [nodemonPlugin()]
});
```
### Configuration
See [Nodemon's type definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/nodemon/index.d.ts).