npm.io
12.0.0 • Published 4 months ago

@pixolith/webpack-hook-plugin

Licence
MIT
Version
12.0.0
Deps
1
Size
2 kB
Vulns
0
Weekly
0

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