install-webpack-plugin weekly downloads statistics
By webpack-contrib (7 listings) · npm · Webpack plugins
Webpack plugin to automatically install & save dependencies.
install-webpack-plugin has 52 recorded weekly downloads on npm, a decrease of 23.5% over the past 30 days, ranking #2766 of 3,247 tracked listings.
About install-webpack-plugin
It is inefficient to <kbd>Ctrl-C</kbd> your build script & server just to install a dependency you didn't know you needed until now.
Instead, use require or import how you normally would and installation
will happen automatically to install & save missing dependencies while you work!
Installation
$ npm install --save-dev install-webpack-plugin
Usage
In your webpack.config.js:
plugins: [
new InstallPlugin()
],
This is equivalent to:
plugins: [
new InstallPlugin({
dependencies: {
peer: true,
},
packageManager: {
type: this.getDefaultPackageManager(),
options: {
dev: false,
quiet: false,
},
},
prompt: true,
});
],
Options
dependencies
Type: Object
Dependencies related options.
peer
Type: Boolean
Default: true
Install missing peer dependencies.
plugins: [
new InstallPlugin({
dependencies: {
peer: true,
}
}),
],
packageManager
Type: 'npm' | 'yarn' | 'pnpm' | Object | Function
Package manager to use for installing dependencies.
plugins: [
new InstallPlugin({
packageManager: 'yarn'
},
}),
],
You can provide a Function to the packageManager to make it dynamic:
plugins: [
new InstallPlugin({
packageManager: function(module, path) {
return [
"babel-preset-react-hmre",
"webpack-dev-middleware",
"webpack-hot-middleware",
].indexOf(module) !== -1;
},
}),
],
type
Type: 'npm' | 'yarn' | 'pnpm'
Name of package manager to use for installing dependencies.
options
Type: Object
Package manager related options.
arguments
Type: Array
Provide custom arguments to use with package manager.
plugins: [
new InstallPlugin({
packageManager: {
type: 'npm',
options: {
arguments: ['--ignore-scripts']
}
}
},
}),
],
dev
Type: Boolean
Default: false
Install as development dependencies.
plugins: [
new InstallPlugin({
packageManager: {
type: 'npm',
options: {
dev: true,
}
}
},
}),
],
quiet
Type: Boolean
Default: false
Reduce the amount of console logging.
plugins: [
new InstallPlugin({
packageManager: {
type: 'npm',
options: {
quiet: true,
}
}
},
}),
],
prompt
Type: Boolean
Default: true
Show a prompt to confirm installation.
plugins: [
new InstallPlugin({
prompt: true,
},
}),
],
Demo

Features
- Works with webpack
^v5.0.0. - Auto-installs
.babelrcplugins & presets. - Supports both ES5 & ES6 Modules.
(e.g.
require,import) - Supports Namespaced packages.
(e.g.
@cycle/dom) - Supports Dot-delimited packages.
(e.g.
lodash.capitalize) - Supports CSS imports.
(e.g.
@import "~bootstrap") - Supports webpack loaders.
(e.g.
babel-loader,file-loader, etc.) - Supports inline webpack loaders.
(e.g.
require("bundle?lazy!./App") - Auto-installs missing
peerDependencies. (e.g.@cycle/corewill automatically installrx@*) - Supports webpack's
resolve.alias&resolve.rootconfiguration. (e.g.require("react")can alias toreact-lite)
Contributing
Please take a moment to read our contributing guidelines if you haven't yet done so.
Description from the npm listing.
- webpack
- webpack-plugin
- npm
- install
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 (170)Similar npm Webpack plugins plugins
All 20 install-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/install-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.