@pixolith/webpack-hook-plugin
v9.0.0
Published
## How to use
Downloads
286
Readme
Webpack Hook Plugin
How to use
Install
npm install @pixolith/webpack-hook-plugin --save-dev
Add the plugin
const HookPlugin = require('@pixolith/webpack-hook-plugin');
Add this to the plugins
section of your webpack.config.js
new HookPlugin({
failed() {
// run this when compilation fails
},
beforeRun() {
// run this before compilation starts
},
//... more hooks
});
What hooks are available
Check this list here: Webpack 4 Hooks