Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Web Performance Budget
  3. Size Plugin

Size Plugin

Apache-2.0JavaScript3.0.0

A Webpack plugin that tracks compressed asset sizes and shows changes between builds.

Visit WebsiteGitHubGitHub
1.7k stars40 forks0 contributors

What is Size Plugin?

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.

Target Audience

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.

Value Proposition

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.

Overview

Track compressed Webpack asset sizes over time.

Use Cases

Best For

  • Monitoring JavaScript bundle size changes in CI/CD pipelines
  • Enforcing performance budgets during frontend development
  • Identifying which Webpack chunks are growing unexpectedly
  • Tracking the impact of new dependencies on final asset sizes
  • Comparing gzipped asset sizes before and after code changes
  • Visualizing bundle size trends over multiple builds

Not Ideal For

  • Projects using bundlers other than Webpack, such as Vite or esbuild
  • Developers needing real-time size monitoring during hot module replacement
  • Teams requiring detailed bundle visualizations or dependency breakdowns
  • Applications where uncompressed asset sizes are more critical than gzipped sizes

Pros & Cons

Pros

Zero-Config Setup

Simply add the plugin to webpack.config.js for instant size tracking without additional configuration, as shown in the minimal usage example.

Clear Delta Reporting

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.

Persistent Data Storage

Can save size history to disk using options like filename and writeFile, enabling consistent trend analysis across builds without manual logging.

Flexible File Filtering

Supports minimatch patterns to include or exclude specific assets, allowing focused monitoring on relevant files as per the pattern and exclude options.

Cons

Bundler Lock-in

Exclusively designed for Webpack, making it incompatible with other popular bundlers like Vite or esbuild without relying on separate ports or alternatives.

Limited Export Options

Primarily outputs to CLI with no built-in support for exporting data in structured formats like JSON, hindering integration with external dashboards or tools.

No Deep Insights

Only reports gzipped sizes and deltas, lacking analysis on why sizes changed or which dependencies contributed most, which limits optimization guidance.

Frequently Asked Questions

Quick Stats

Stars1,666
Forks40
Contributors0
Open Issues8
Last commit9 days ago
CreatedSince 2018

Tags

#build-tools#gzip#frontend-tooling#bundle-size#performance-monitoring#javascript#performance-budget#webpack-plugin#webpack

Built With

N
Node.js
W
Webpack

Links & Resources

Website

Included in

Web Performance Budget127
Auto-fetched 1 day ago

Related Projects

Size LimitSize Limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.

Stars6,903
Forks1,783
Last commit11 days ago
Bundle SizeBundle Size

Keep your bundle size in check

Stars4,479
Forks177
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub