Gathering detailed insights and metrics for nodemon-webpack-plugin
Gathering detailed insights and metrics for nodemon-webpack-plugin
Gathering detailed insights and metrics for nodemon-webpack-plugin
Gathering detailed insights and metrics for nodemon-webpack-plugin
A webpack plugin that uses Nodemon to start and reload the server.
npm install nodemon-webpack-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
48.7
Supply Chain
63.9
Quality
74.4
Maintenance
100
Vulnerability
99.6
License
JavaScript (85.13%)
Gherkin (14.02%)
Shell (0.85%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
183 Stars
268 Commits
21 Forks
4 Watching
3 Branches
9 Contributors
Minified
Minified + Gzipped
Latest Version
4.8.2
Package Id
nodemon-webpack-plugin@4.8.2
Unpacked Size
11.30 kB
Size
4.61 kB
File Count
6
NPM Version
8.19.4
Node Version
14.18.3
Publised On
10 Oct 2023
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
2
1
30
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.
1npm install nodemon-webpack-plugin --save-dev
1const NodemonPlugin = require('nodemon-webpack-plugin'); // Ding 2 3module.exports = { 4 entry: './src/server.js', 5 output: { 6 path: path.resolve('./dist'), 7 filename: 'server.js', 8 }, 9 plugins: [ 10 new NodemonPlugin(), // Dong 11 ], 12};
Then:
1$ webpack --watch
1new NodemonPlugin();
Will watch and restart the output file.
Provide a Nodemon config object, like so:
1new NodemonPlugin({ 2 // If using more than one entry, you can specify 3 // which output file will be restarted. 4 script: './dist/server.js', 5 6 // What to watch. 7 watch: path.resolve('./dist'), 8 9 // Arguments to pass to the script being watched. 10 args: ['demo'], 11 12 // Node arguments. 13 nodeArgs: ['--debug=9222'], 14 15 // Files to ignore. 16 ignore: ['*.js.map'], 17 18 // Extensions to watch. 19 ext: 'js,njk,json', 20 21 // Unlike the cli option, delay here is in milliseconds (also note that it's a string). 22 // Here's 1 second delay: 23 delay: '1000', 24 25 // Detailed log. 26 verbose: true, 27 28 // Environment variables to pass to the script to be restarted 29 env: { 30 NODE_ENV: 'development', 31 }, 32});
For a full list of options, see Nodemon's type definitions (Settings
interface).
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 1/4 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More