{"id":19378529,"url":"https://github.com/izhaki/nodemon-webpack-plugin","last_synced_at":"2025-04-12T21:35:54.525Z","repository":{"id":23100011,"uuid":"97772610","full_name":"Izhaki/nodemon-webpack-plugin","owner":"Izhaki","description":"A webpack plugin that uses Nodemon to start and reload the server.","archived":false,"fork":false,"pushed_at":"2024-06-16T09:38:35.000Z","size":2205,"stargazers_count":183,"open_issues_count":5,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T01:09:40.068Z","etag":null,"topics":["node","nodemon","server","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Izhaki.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-20T00:21:23.000Z","updated_at":"2024-12-23T13:43:40.000Z","dependencies_parsed_at":"2023-11-15T21:29:43.372Z","dependency_job_id":"d3d75d18-498f-41dc-a6ea-98792d5da38a","html_url":"https://github.com/Izhaki/nodemon-webpack-plugin","commit_stats":{"total_commits":220,"total_committers":13,"mean_commits":"16.923076923076923","dds":"0.42272727272727273","last_synced_commit":"906c3ba7119cbad437a61aa14385d14f63c8fde0"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izhaki%2Fnodemon-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izhaki%2Fnodemon-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izhaki%2Fnodemon-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Izhaki%2Fnodemon-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Izhaki","download_url":"https://codeload.github.com/Izhaki/nodemon-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637298,"owners_count":21137531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node","nodemon","server","webpack-plugin"],"created_at":"2024-11-10T09:06:05.875Z","updated_at":"2025-04-12T21:35:54.489Z","avatar_url":"https://github.com/Izhaki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodemon Webpack Plugin\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"100%\" src=\"https://user-images.githubusercontent.com/880132/73990098-0a6ef580-4940-11ea-8df7-c93dda7edb4d.png\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"Build\" href=\"https://github.com/Izhaki/nodemon-webpack-plugin/actions?query=workflow%3ABuild\"\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/workflow/status/Izhaki/nodemon-webpack-plugin/Build\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"NPM version\" href=\"https://npmjs.org/package/nodemon-webpack-plugin\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/nodemon-webpack-plugin?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"Downloads\" href=\"https://www.npmjs.com/package/nodemon-webpack-plugin\"\u003e\n    \u003cimg alt=\"\" src=\"https://img.shields.io/npm/dt/nodemon-webpack-plugin?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nUses [Nodemon](https://nodemon.io/) to watch and restart your module's output file (presumably a server), but only when webpack is in watch mode (ie, `--watch`).\n\nSaves the need for installing, configuring and running Nodemon as a separate process.\n\n## Installation\n\n```bash\nnpm install nodemon-webpack-plugin --save-dev\n```\n\n## Usage\n\n```javascript\nconst NodemonPlugin = require('nodemon-webpack-plugin'); // Ding\n\nmodule.exports = {\n  entry: './src/server.js',\n  output: {\n    path: path.resolve('./dist'),\n    filename: 'server.js',\n  },\n  plugins: [\n    new NodemonPlugin(), // Dong\n  ],\n};\n```\n\nThen:\n\n```shell\n$ webpack --watch\n```\n\n## Modes\n\n### Zero-config mode\n\n```javascript\nnew NodemonPlugin();\n```\n\nWill watch and restart the output file.\n\n### With config\n\nProvide a [Nodemon config object](https://github.com/remy/nodemon#config-files), like so:\n\n```javascript\nnew NodemonPlugin({\n  // If using more than one entry, you can specify\n  // which output file will be restarted.\n  script: './dist/server.js',\n\n  // What to watch.\n  watch: path.resolve('./dist'),\n\n  // Arguments to pass to the script being watched.\n  args: ['demo'],\n\n  // Node arguments.\n  nodeArgs: ['--debug=9222'],\n\n  // Files to ignore.\n  ignore: ['*.js.map'],\n\n  // Extensions to watch.\n  ext: 'js,njk,json',\n\n  // Unlike the cli option, delay here is in milliseconds (also note that it's a string).\n  // Here's 1 second delay:\n  delay: '1000',\n\n  // Detailed log.\n  verbose: true,\n\n  // Environment variables to pass to the script to be restarted\n  env: {\n    NODE_ENV: 'development',\n  },\n});\n```\n\nFor a full list of options, see Nodemon's [type definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/nodemon/index.d.ts) (`Settings` interface).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizhaki%2Fnodemon-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizhaki%2Fnodemon-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizhaki%2Fnodemon-webpack-plugin/lists"}