A webpack plugin that replaces the default minifier (TerserWebpackPlugin) with esbuild for faster JavaScript and CSS minification. Current stable version is 1.2.11, released infrequently. Key differentiator: significantly faster minification times compared to traditional minifiers, especially for large bundles. Integrates seamlessly into existing webpack configurations with minimal setup. Note that esbuild's minification may produce slightly larger output than Terser in some cases, and does not support all Terser options (e.g., mangling exceptions).
npm install esbuild-minifier-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures webpack to use esbuild for minification instead of Terser, with optional CSS minification and ES target specification.
Migrate any essential Terser options to esbuild equivalents or accept the loss of features.
Ensure Node.js and webpack meet minimum requirements.
Update configuration to use 'minify' options object.
Compare bundle size and behavior with Terser before switching permanently.
Run npm install esbuild --save-dev
Run npm install esbuild-minifier-webpack-plugin --save-dev
Use import ESBuildMinifierPlugin from 'esbuild-minifier-webpack-plugin' or const Plugin = require('esbuild-minifier-webpack-plugin')Ensure optimization.minimizer is an array containing the plugin instance: new ESBuildMinifierPlugin()