
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
event-hooks-webpack-plugin
Advanced tools
This Webpack plugin is similar to webpack-shell-plugin
but this allows you to execute arbitrary JavaScript instead of commands on any event hook that is exposed by the Webpack compiler.
npm install event-hooks-webpack-plugin --save-dev
var EventHooksPlugin = require('event-hooks-webpack-plugin');
module.exports = {
// ...
plugins: [
new EventHooksPlugin({
'event-name': function() {
// ...
}
})
]
}
The plugin consumes an object with Webpack event hook names (e.g. run
, compile
, or done
) as keys and functions as values.
FAQs
Execute JavaScript on any available Webpack event hook
The npm package event-hooks-webpack-plugin receives a total of 9,778 weekly downloads. As such, event-hooks-webpack-plugin popularity was classified as popular.
We found that event-hooks-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.