A Webpack plugin that formats and displays messages throughout the bundle lifecycle, including compile start, success, warnings, and errors. Version 2.0.4 is the current stable release, compatible with Webpack 3.x and 4.x. It uses kleur for colorization and provides hooks for custom loggers and completion callbacks. Unlike similar plugins, it supports named bundles for multi-compiler setups and has a minimal footprint. Releases are infrequent but address critical compatibility issues and deprecation warnings.
npm install webpack-messagesVerified import paths — ran on the pinned version, not inferred.
Adds WebpackMessages plugin to Webpack config with custom logger and bundle name.
Use Node >=6 or downgrade to v1.0.x.
Use v1.x if you need chalk compatibility.
Use require('webpack-messages') or configure bundler to allow CJS.Update to v1.0.1+.
Use const WebpackMessages = require('webpack-messages'); not const { WebpackMessages } = require('webpack-messages');Make sure webpack-format-messages is installed: npm install webpack-messages webpack-format-messages