electron-webpack-plugin weekly downloads statistics
By thesbros · npm · Webpack plugins
Webpack plugin to launch Electron.
electron-webpack-plugin has 34 recorded weekly downloads on npm, an increase of 61.9% over the past 30 days, ranking #2866 of 3,247 tracked listings.
About electron-webpack-plugin
electron-webpack-plugin

Webpack plugin to restart Electron.
Requires a peer dependency of electron.
NOTE: As of version 2.0.0, relaunchPathMatch has changed to test - which is a regex to test the module ID against.
API
new ElectronPlugin(options: object)
options
new ElectronPlugin({
// if a module ID matches this regex and that module has changed, electron will be restarted
// *required*
test: /^.\/src\/browser/,
// the path to launch electron with
// *required*
path: "./output",
// the command line arguments to launch electron with
// optional
args: ["--enable-logging"],
// the options to pass to child_process.spawn
// see: https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options
// optional
options: {
env: {NODE_ENV: "development"}
}
})
Example
With this config, Electron will restart when any module in ./src/browser changes.
const ElectronPlugin = require("electron-webpack-plugin");
module.exports = {
entry: {
"browser/index": "./src/browser/index.js",
"renderer/index": "./src/renderer/index.js",
},
output: {
path: "./output",
filename: "scripts/[name].js"
},
plugins: [
new ElectronPlugin({
test: /^.\/src\/browser/,
path: "output"
})
],
target: "electron"
};
With webpack-dev-server
You will need to use write-file-webpack-plugin, to allow Electron to access the output path.
You will also need to add the following options:
devServer: {
// electron will break if client is inlined in main process
inline: false
}
You will also need to add the dev server client to your renderer entry point, if it is not already:
"renderer/index": [
"webpack-dev-server/client?http://localhost:3000",
"./src/scripts/renderer/index.js"
]
This will allow HMR with inline: false.
(replace http://localhost:3000 with whatever your dev server URL is)
Description from the npm listing.
- electron
- webpack
- plugin
- relaunch
- restart
- run
- webpack-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Webpack plugins plugins
All 20 electron-webpack-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/electron-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 26, 2026. See the methodology.