Gathering detailed insights and metrics for run-script-webpack-plugin
Gathering detailed insights and metrics for run-script-webpack-plugin
Gathering detailed insights and metrics for run-script-webpack-plugin
Gathering detailed insights and metrics for run-script-webpack-plugin
webpack-shell-plugin
Run shell commands before and after webpack builds
webpack-shell-plugin-next
Run shell commands before and after webpack builds
webpack-hook-plugin
Run shell commands before and after webpack builds
start-server-webpack-plugin-2
Automatically run your script once Webpack's build completes.
Automatically run your script once Webpack's build completes.
npm install run-script-webpack-plugin
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
42 Stars
67 Commits
11 Forks
3 Watchers
5 Branches
11 Contributors
Updated on Jul 03, 2025
Latest Version
0.2.3
Package Id
run-script-webpack-plugin@0.2.3
Unpacked Size
9.70 kB
Size
3.86 kB
File Count
5
NPM Version
10.8.2
Node Version
18.20.7
Published on
Apr 06, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Automatically run your script once Webpack's build completes.
NOTE: mostly copied from this repo, but strongly typed from scratch
1npm i -D run-script-webpack-plugin
In webpack.config.ts
:
1import { RunScriptWebpackPlugin } from "run-script-webpack-plugin"; 2 3export default { 4 plugins: [ 5 ... 6 // Only use this in DEVELOPMENT 7 new RunScriptWebpackPlugin({ 8 name: 'server.js', 9 nodeArgs: ['--inspect'], // allow debugging 10 args: ['scriptArgument1', 'scriptArgument2'], // pass args to script 11 autoRestart: true | false, // Should the script auto-restart after emit. Defaults to true. This should be set to false if using HMR 12 signal: false | true | 'SIGUSR2', // signal to send for HMR (defaults to `false`, uses 'SIGUSR2' if `true`) 13 keyboard: true | false, // Allow typing 'rs' to restart the server. default: only if NODE_ENV is 'development' 14 cwd: undefined | string, // set a current working directory for the child process default: current cwd 15 }), 16 ], 17}
The name
argument in RunScriptWebpackPluginOptions
refers to the built asset, which is named by the output options of webpack (in the example the entry server
becomes server.js
. This way, the plugin knows which entry to start in case there are several.
If you don't pass a name, the plugin will tell you the available names.
You can use nodeArgs
and args
to pass arguments to node and your script, respectively. For example, you can use this to use the node debugger.
To use Hot Module Reloading with your server code, set Webpack to "hot" mode and include the webpack/hot/poll
or webpack/hot/signal
modules. Make sure they are part of your server bundle, e.g. if you are using node-externals
put them in your whitelist. The latter module requires the signal
option.
Refer to LICENSE file
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
4 existing vulnerabilities detected
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
Score
Last Scanned on 2025-07-07
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