Skip to content
PluginStats

hook-webpack-plugin weekly downloads statistics

By AlexisPuga · npm · Webpack plugins

A hook injector designed for your webpack config.

View on npm Outdated · Nov 24, 2026

hook-webpack-plugin has 27 recorded weekly downloads on npm, a decrease of 22.9% over the past 30 days, ranking #2934 of 3,247 tracked listings.

Weekly downloads
27
Official API · Dec 5, 2026
7-day growth
+3.8%
+1 weekly downloads
30-day growth
-22.9%
-8 weekly downloads
90-day growth
-6.9%
-2 weekly downloads
Rank
#2934
▼ 182 in 7 days

About hook-webpack-plugin

<p> <a href='https://coveralls.io/github/AlexisPuga/hook-webpack-plugin?branch=master' target='_blank'><img src='https://coveralls.io/repos/github/AlexisPuga/hook-webpack-plugin/badge.svg?branch=master' alt='Coverage Status'/></a> <a href='https://circleci.com/gh/AlexisPuga/hook-webpack-plugin' target='_blank'><img align='right' src='https://circleci.com/gh/AlexisPuga/hook-webpack-plugin.svg?style=svg' alt='CircleCI'/></a> </p> <br/>

Hook - webpack plugin

Create custom plugins from your config file and avoid loosing time finding or maintaining a simple plugin.

Intercept any plugin and customize it to match your preferences.

Group your hooks to create a new plugin and modify it when you want.

Contents

Installation

<a href='https://npmjs.org/package/hook-webpack-plugin'><img align='right' src='https://nodei.co/npm/hook-webpack-plugin.png?compact=true' alt='NPM'/></a>

Via npm:

npm i hook-webpack-plugin

Via yarn:

yarn add hook-webpack-plugin --dev

Usage

Add something like the following to your config file, in the plugin section:

// webpack.config.js
const HookWebpackPlugin = require('hook-webpack-plugin');

// ...
plugins: [
    // ...
    new HookWebpackPlugin(hookName, hookFn, options)
    // ...
]
// ...

Then, replace the following values:

<dl> <dt><var>hookName</var>: string</dt> <dd>The name of a <a href='https://webpack.js.org/api/compiler-hooks/' target='_blank'/>compiler</a>/<a href='https://webpack.js.org/api/compilation-hooks/' target='_blank'>compilation</a> hook. <i>Something like "emit", "done", ...</i></dd> <dt><var>hookFn</var>: function</dt> <dd>The listener for the hook.</dd> <dt><var>options</var>: object<sub>opt</sub></dt> <dd> <table> <thead> <tr> <th>Property</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <th>sync</th> <td>false [async when possible]</td> <td>If a truthy value is given use `tap`, otherwise use `tapAsync`.</td> </tr> <tr> <th>pluginName</th> <td>HookWebpackPlugin</td> <td>Value to use in tap/tapAsync methods.</td> </tr> </tbody> </table> </dd> </dl>

Examples

Creating a plugin
// webpack.config.js

plugins: [
    new HookWebpackPlugin(hookName, compilerHook (...args) {
        // Do something awesome...
    })
]

Registering a plugin

Name your plugin and group multiple hooks together, internally.

// webpack.config.js

plugins: [
    new HookWebpackPlugin(hookName, compilerHook, {pluginName: 'MyAwesomePlugin'}),
    new HookWebpackPlugin(anotherHookName, anotherCompilerHook, {pluginName: 'MyAwesomePlugin'})
]

Intercepting another plugin

Set the pluginName option to the internal name of the plugin you want to intercept.

// webpack.config.js

plugins: [
    new ThirdPartyPlugin(options),
    new HookWebpackPlugin(hookName, () => {
        // Your code...
    }, {'pluginName': 'ThirdPartyPlugin'})
]

More info

Check the docs for more details.

License

hook-webpack-plugin is MIT licensed.

Description from the npm listing.

  • 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

hook-webpack-plugin weekly downloads on npm, last 90 days: 27 weekly downloads as of Dec 5, 2026, -6.9% over 90 days.hook-webpack-pluginWeekly downloads on npm · Last 90 days27downloads / week-6.9% over 90 days010203040Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
hook-webpack-plugin weekly downloads on npm, last 90 days: 27 weekly downloads as of Dec 5, 2026, -6.9% over 90 days.

7/30/90-day growth

hook-webpack-plugin weekly downloads growth on npm: +3.8% over 7 days, -22.9% over 30 days, -6.9% over 90 days.hook-webpack-pluginWeekly downloads growth on npm27downloads / week now7-day growth+1 weekly downloads+3.8%30-day growth-8 weekly downloads-22.9%90-day growth-2 weekly downloads-6.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
hook-webpack-plugin weekly downloads growth on npm: +3.8% over 7 days, -22.9% over 30 days, -6.9% over 90 days.

Ranking history

hook-webpack-plugin npm ranking history: currently #2934 (by weekly downloads).hook-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2934current rank#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 10, 2026 – Dec 6, 2026 · 20 observations · Updated Dec 5, 2026pluginstats.com
hook-webpack-plugin npm ranking history: currently #2934 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 147, #16 (overall #2,936)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 15, #5 (overall #285)
Webpack plugins: every listing in weekly downloads order

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 (142)
Recent weekly downloads observations for hook-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
270
27-4
31-1
32+8
24+1
23-1
24-2
260
26-2
280
28+1
27-4
31+1
30—

Similar npm Webpack plugins plugins

All 20 hook-webpack-plugin alternatives

Data 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/hook-webpack-plugin. First seen Nov 10, 2026; last successful collection Nov 24, 2026. See the methodology.