A Webpack plugin that measures the execution time of loaders and plugins during builds, helping developers identify performance bottlenecks. Current stable version is 1.5.2, compatible with Webpack versions 1 through 5. This is a community fork of stephencookdev/speed-measure-webpack-plugin, specifically updated for Webpack v5. The primary differentiator is its ability to exclude certain plugins from measurement to avoid build failures (e.g., with ReactRefreshPlugin or MiniCssExtractPlugin). It supports multiple output formats (human, JSON, custom) and can write results to a file. Release cadence is low; last update was around 2021.
npm install speed-measure-webpack-v5-pluginVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: wrap your webpack config with smp.wrap() to measure build times.
smp.wrap(config, ['ReactRefreshPlugin', 'MiniCssExtractPlugin'])
Replace require('speed-measure-webpack-plugin') with require('speed-measure-webpack-v5-plugin').Disable persistent caching when measuring: set cache: false in webpack config.
Run 'npm install --save-dev speed-measure-webpack-v5-plugin'
Use: const SpeedMeasurePlugin = require('speed-measure-webpack-v5-plugin');
const smp = new SpeedMeasurePlugin();Exclude problematic plugins via smp.wrap(config, ['PluginName']). If issue persists, use older webpack version.