MCPcopy Index your code
hub / github.com/Izhaki/nodemon-webpack-plugin

github.com/Izhaki/nodemon-webpack-plugin @v4.8.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.8.2 ↗ · + Follow
20 symbols 50 edges 20 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Nodemon Webpack Plugin

GitHub Workflow Status

Uses Nodemon to watch and restart your module's output file (presumably a server), but only when webpack is in watch mode (ie, --watch).

Saves the need for installing, configuring and running Nodemon as a separate process.

Installation

npm install nodemon-webpack-plugin --save-dev

Usage

const NodemonPlugin = require('nodemon-webpack-plugin'); // Ding

module.exports = {
  entry: './src/server.js',
  output: {
    path: path.resolve('./dist'),
    filename: 'server.js',
  },
  plugins: [
    new NodemonPlugin(), // Dong
  ],
};

Then:

$ webpack --watch

Modes

Zero-config mode

new NodemonPlugin();

Will watch and restart the output file.

With config

Provide a Nodemon config object, like so:

new NodemonPlugin({
  // If using more than one entry, you can specify
  // which output file will be restarted.
  script: './dist/server.js',

  // What to watch.
  watch: path.resolve('./dist'),

  // Arguments to pass to the script being watched.
  args: ['demo'],

  // Node arguments.
  nodeArgs: ['--debug=9222'],

  // Files to ignore.
  ignore: ['*.js.map'],

  // Extensions to watch.
  ext: 'js,njk,json',

  // Unlike the cli option, delay here is in milliseconds (also note that it's a string).
  // Here's 1 second delay:
  delay: '1000',

  // Detailed log.
  verbose: true,

  // Environment variables to pass to the script to be restarted
  env: {
    NODE_ENV: 'development',
  },
});

For a full list of options, see Nodemon's type definitions (Settings interface).

Core symbols most depended-on inside this repo

renderTemplate
called by 3
features/support/templates.js
reject
called by 1
features/step_definitions/assertions.js
getNextOutputBlock
called by 1
features/support/outputMonitoring.js
symLinkNodeModules
called by 1
features/support/tmpDir.js
compile
called by 1
features/support/typescript.js
startMonitoring
called by 1
src/index.js
getOutputFileName
called by 1
src/webpack-utils.js
getOutputFileMeta
called by 1
src/webpack-utils.js

Shape

Function 11
Method 5
Class 4

Languages

TypeScript100%

Modules by API surface

src/index.js7 symbols
src/webpack-utils.js3 symbols
features/support/outputMonitoring.js3 symbols
typings.d.ts2 symbols
features/step_definitions/assertions.js2 symbols
features/support/typescript.js1 symbols
features/support/tmpDir.js1 symbols
features/support/templates.js1 symbols

For agents

$ claude mcp add nodemon-webpack-plugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page