A webpack plugin that runs shell commands at various stages of the webpack build lifecycle: on build start, on build end, on build exit, and on every compile. Version 1.0.7 is the current stable release, with no active development observed since 2023. It supports both webpack and webpack-dev-server, and allows multiple commands per hook. Unlike similar plugins (e.g., webpack-shell-plugin), this one provides a built-in 'dev' switch to avoid repeated execution in watch mode and a 'safe' mode using exec instead of spawn for compatibility.
npm install webpack-hook-pluginVerified import paths — ran on the pinned version, not inferred.
Shows full usage with all hooks and options in a webpack config.
Set `dev: false` in the options object.
Set `safe: true` in the options object.
Use `onBuildEnd` instead if you want scripts to run on every rebuild.
Use `import WebpackHookPlugin from 'webpack-hook-plugin'` or `const WebpackHookPlugin = require('webpack-hook-plugin')`.Set `safe: true` in the options to use exec instead.
No dependency data recorded yet.