Add it to your scripts in package.json. Or you can use it with npx from NPM 5.2+. bundlesize accepts an array of files to check. You can give a different file by using the --config flag. If the names of your build files are not predictable, you can use the glob pattern to specify files. This is common if you append a hash to the name or use a tool like create-react-app/nextjs. It will match multiple files if necessary and create a new row for each file. By default, bundlesize gzips your build files before comparing.

Features

  • Currently works with Travis CI, CircleCI, Wercker, and Drone
  • You will need to supply an additional 5 environment variables
  • bundlesize can also be used without creating a configuration file
  • For more granular configuration, we recommend configuring it in the package.json
  • You can set bundlesize up to create a "check" on every pull request
  • By default, bundlesize gzips your build files before comparing

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Bundlesize

Bundlesize Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Bundlesize!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Performance Testing Software, JavaScript Package Managers

Registered

2021-12-28