Webpack Compiler Plugin (v1.1.5) lets you execute custom commands at key webpack compiler hook stages: buildStart, compileStart, compileEnd, and buildEnd. It wraps commands asynchronously and supports disabling stage messages. Last updated November 2020 with maintenance-only commits; no releases since. Differentiator: simple declarative API for hooking into webpack lifecycle without manual plugin wiring. Requires Node >=8, npm >=6, and webpack (peer dependency). Ships TypeScript type definitions.
npm install webpack-compiler-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures the plugin to run custom functions at buildStart and compileEnd, with stage messages disabled.
Update to v1.1.4+ where async functions are properly wrapped and return a promise.
Explicitly set `stageMessages: false` to disable stage messages.
Install webpack: `npm install --save-dev webpack`.
Use exclusively in Node.js webpack configurations.
Run `npm install webpack-compiler-plugin --save-dev` and ensure it's in package.json.
Change to `import { WebpackCompilerPlugin } from 'webpack-compiler-plugin'`.Run `npm install webpack --save-dev`.