A Webpack plugin that tracks compressed asset sizes and shows changes between builds.
size-plugin is a Webpack plugin that automatically tracks and reports the gzipped sizes of your compiled JavaScript, CSS, and other web assets. It solves the problem of bundle size creep by showing exactly how much each file changed since the last build, helping developers maintain performance budgets and optimize loading times.
Frontend developers and teams using Webpack who need to monitor and control their application's bundle sizes, especially those working on performance-sensitive web applications.
Developers choose size-plugin because it provides zero-configuration size tracking with clear visual diffs, integrates seamlessly into existing Webpack workflows, and helps prevent performance regressions by making bundle size changes immediately visible.
Track compressed Webpack asset sizes over time.
Simply add the plugin to webpack.config.js for instant size tracking without additional configuration, as shown in the minimal usage example.
Outputs color-coded size differences in the terminal after each build, making it easy to spot increases or decreases at a glance, evidenced by the provided screenshot.
Can save size history to disk using options like filename and writeFile, enabling consistent trend analysis across builds without manual logging.
Supports minimatch patterns to include or exclude specific assets, allowing focused monitoring on relevant files as per the pattern and exclude options.
Exclusively designed for Webpack, making it incompatible with other popular bundlers like Vite or esbuild without relying on separate ports or alternatives.
Primarily outputs to CLI with no built-in support for exporting data in structured formats like JSON, hindering integration with external dashboards or tools.
Only reports gzipped sizes and deltas, lacking analysis on why sizes changed or which dependencies contributed most, which limits optimization guidance.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.