{"id":20780,"library":"webpack-info-plugin","title":"webpack-info-plugin","description":"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.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/zinserjan/webpack-info-plugin","tags":["javascript","webpack","plugin"],"install":[{"cmd":"npm install webpack-info-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add webpack-info-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add webpack-info-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency as a webpack plugin","package":"webpack","optional":false}],"imports":[{"note":"Module uses CommonJS; no ES module export available.","wrong":"import WebpackInfoPlugin from 'webpack-info-plugin';","symbol":"WebpackInfoPlugin","correct":"const WebpackInfoPlugin = require('webpack-info-plugin');"},{"note":"Plugin is a constructor; instantiate with 'new' and pass options object.","wrong":"const info = new WebpackInfoPlugin.default(options);","symbol":"instance","correct":"const info = new WebpackInfoPlugin(options);"},{"note":"Options key is 'colors' (not 'color'); matches webpack stats toString options.","wrong":"{ stats: { color: true } }","symbol":"options.stats","correct":"{ stats: { colors: true, timings: true } }"}],"quickstart":{"code":"const WebpackInfoPlugin = require('webpack-info-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: { path: __dirname + '/dist', filename: 'bundle.js' },\n  plugins: [\n    new WebpackInfoPlugin({\n      stats: {\n        colors: true,\n        version: false,\n        hash: false,\n        timings: true,\n        assets: false,\n        chunks: false,\n        chunkModules: false,\n        modules: false\n      },\n      state: true\n    })\n  ]\n};","lang":"javascript","description":"Configures webpack-info-plugin with custom stats and state display in webpack config."},"warnings":[{"fix":"Use correct option key as shown in documentation.","message":"Options 'stats' expects webpack stats toString options; 'colors' not 'color'.","severity":"gotcha","affected_versions":"0.1.0"},{"fix":"Use new WebpackInfoPlugin(options).","message":"Plugin constructs with 'new' keyword; do not call as function.","severity":"gotcha","affected_versions":"0.1.0"},{"fix":"Migrate to webpack-dev-middleware for stats display.","message":"This package has one release and is no longer maintained; consider using webpack-dev-middleware or @webpack-cli/serve for modern use.","severity":"deprecated","affected_versions":"0.1.0"},{"fix":"Set stats: false to disable, or configure individual options.","message":"Stats display may be verbose; cannot suppress all output without setting stats to false.","severity":"gotcha","affected_versions":"0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use const WebpackInfoPlugin = require('webpack-info-plugin'); new WebpackInfoPlugin(options);","cause":"Importing incorrectly or not using 'new'.","error":"TypeError: WebpackInfoPlugin is not a constructor"},{"fix":"Provide an object with valid stats keys, e.g., { colors: true }.","cause":"Passing an array or string instead of object for stats.","error":"Error: Options for verbosity must be webpack stats options"},{"fix":"Run npm install webpack-info-plugin --save-dev and ensure correct require path.","cause":"Package not installed or import path wrong.","error":"Module not found: Error: Can't resolve 'webpack-info-plugin'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}