A tool to check and enforce JavaScript bundle size limits in CI/CD pipelines.
Bundlesize is a Node.js tool that checks JavaScript bundle file sizes against configured limits. It helps developers prevent bundle bloat by integrating size checks into CI/CD pipelines, ensuring applications stay performant. It supports various compression methods and provides GitHub status checks for pull requests.
Frontend developers and teams building JavaScript applications who need to enforce performance budgets and prevent unexpected size increases in their bundles.
Developers choose Bundlesize for its simplicity, seamless CI integration, and configurable approach to bundle size enforcement without requiring complex build process changes.
Keep your bundle size in check
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works with Travis CI, CircleCI, Wercker, and Drone to add status checks on pull requests, providing immediate visual feedback when bundle sizes exceed limits.
Supports glob patterns for dynamic file names, making it easy to handle hashed or chunked bundles in tools like Create React App without hardcoding paths.
Allows checking sizes with gzip, Brotli, or no compression, enabling accurate comparisons based on real-world deployment settings for performance budgets.
Can be configured directly in package.json or a separate JSON file, minimizing setup overhead and keeping checks version-controlled with the project.
Only supports a limited set of CI tools; for others like AppVeyor, manual environment variable setup is required, as acknowledged in the TODO section.
Requires obtaining and managing a GitHub token and setting multiple environment variables, which can be error-prone and tedious for team onboarding.
Focuses solely on file size checking without building or analyzing bundles, unlike tools like size-limit that integrate with webpack for deeper insights.