Registry / devops / webpack-info-plugin

webpack-info-plugin

JSON →
library0.1.0jsnpmunverified

A simple webpack plugin that displays build status and formatted stats output during development, similar to webpack-dev-middleware. Version 0.1.0 is the initial and only release. Provides configuration for stats display and state notifications (valid/invalid). Minimal dependencies (only webpack peer dependency). Differentiator: lightweight, configuration-focused, no extra middleware required.

npm install webpack-info-plugin
INSTALL
IMPORT
SIG · WEBPACK-INFO-PLUGI
W
webpack-info-plugin
devopsjavascriptv0.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebpackInfoPlugin
const WebpackInfoPlugin = require('webpack-info-plugin');
import WebpackInfoPlugin from 'webpack-info-plugin';
Module uses CommonJS; no ES module export available.
instance
const info = new WebpackInfoPlugin(options);
const info = new WebpackInfoPlugin.default(options);
Plugin is a constructor; instantiate with 'new' and pass options object.
options.stats
{ stats: { colors: true, timings: true } }
{ stats: { color: true } }
Options key is 'colors' (not 'color'); matches webpack stats toString options.

Configures webpack-info-plugin with custom stats and state display in webpack config.

const WebpackInfoPlugin = require('webpack-info-plugin'); module.exports = { entry: './src/index.js', output: { path: __dirname + '/dist', filename: 'bundle.js' }, plugins: [ new WebpackInfoPlugin({ stats: { colors: true, version: false, hash: false, timings: true, assets: false, chunks: false, chunkModules: false, modules: false }, state: true }) ] };
Debug
Known issues
gotchaOptions 'stats' expects webpack stats toString options; 'colors' not 'color'.
fix
Use correct option key as shown in documentation.
affects: 0.1.0
gotchaPlugin constructs with 'new' keyword; do not call as function.
fix
Use new WebpackInfoPlugin(options).
affects: 0.1.0
deprecatedThis package has one release and is no longer maintained; consider using webpack-dev-middleware or @webpack-cli/serve for modern use.
fix
Migrate to webpack-dev-middleware for stats display.
affects: 0.1.0
gotchaStats display may be verbose; cannot suppress all output without setting stats to false.
fix
Set stats: false to disable, or configure individual options.
affects: 0.1.0
Errors
Common errors & fixes
TypeError: WebpackInfoPlugin is not a constructor
Importing incorrectly or not using 'new'.
fix
Use const WebpackInfoPlugin = require('webpack-info-plugin'); new WebpackInfoPlugin(options);
Error: Options for verbosity must be webpack stats options
Passing an array or string instead of object for stats.
fix
Provide an object with valid stats keys, e.g., { colors: true }.
Module not found: Error: Can't resolve 'webpack-info-plugin'
Package not installed or import path wrong.
fix
Run npm install webpack-info-plugin --save-dev and ensure correct require path.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
webpackrequiredpeer dependency as a webpack plugin
Agent activity
11 hits · last 30 days
node
10
Resources
webpack-info-plugin — npm install webpack-info-plugin · libregistry