{"id":20328874,"url":"https://github.com/kaliber5/ember-cli-bundlesize","last_synced_at":"2025-08-09T21:15:14.844Z","repository":{"id":40711544,"uuid":"149821124","full_name":"kaliber5/ember-cli-bundlesize","owner":"kaliber5","description":"Make sure your Ember app stays small by testing its bundle size against a given size budget.","archived":false,"fork":false,"pushed_at":"2022-12-10T16:58:59.000Z","size":2442,"stargazers_count":34,"open_issues_count":26,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T01:08:17.097Z","etag":null,"topics":["bundlesize","ember","ember-addon"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaliber5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-21T21:40:41.000Z","updated_at":"2025-07-01T08:28:56.000Z","dependencies_parsed_at":"2023-01-26T09:31:56.265Z","dependency_job_id":null,"html_url":"https://github.com/kaliber5/ember-cli-bundlesize","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kaliber5/ember-cli-bundlesize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliber5%2Fember-cli-bundlesize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliber5%2Fember-cli-bundlesize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliber5%2Fember-cli-bundlesize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliber5%2Fember-cli-bundlesize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaliber5","download_url":"https://codeload.github.com/kaliber5/ember-cli-bundlesize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliber5%2Fember-cli-bundlesize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269532367,"owners_count":24433271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundlesize","ember","ember-addon"],"created_at":"2024-11-14T20:08:16.977Z","updated_at":"2025-08-09T21:15:14.792Z","avatar_url":"https://github.com/kaliber5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-cli-bundlesize\n==============================================================================\n\n![CI](https://github.com/kaliber5/ember-cli-bundlesize/workflows/CI/badge.svg)\n[![Ember Observer Score](https://emberobserver.com/badges/ember-cli-bundlesize.svg)](https://emberobserver.com/addons/ember-cli-bundlesize)\n[![npm version](https://badge.fury.io/js/ember-cli-bundlesize.svg)](https://badge.fury.io/js/ember-cli-bundlesize)\n\nMake sure your Ember app stays small by testing its bundle size against a given size budget.\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.8 or above\n* Ember CLI v2.13 or above\n* Node.js v10 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-cli-bundlesize\n```\n\nMake sure to `git add` the added `config/bundlesize.js` file!\n\n#### Optional dependency\n\nIf your app uses Brotli compression and the `brotli` option is set in your configuration (i.e `compression: 'brotli'`), you must install the optional dependency: `brotli-size`.\n\n```\nnpm install --save-dev brotli-size\n```\n\nUsage\n------------------------------------------------------------------------------\n\nThis addon lets you define buckets for your asset files (e.g. JavaScript, CSS, images), and a size budget for each\nbucket that all files belonging to that bucket must not exceed, e.g \"max. 400KB of JavaScript after GZip compression\".\n\n### Running bundle size tests\n\nRun this command to build and assert that your app does not exceed the defined limits:\n\n```\nember bundlesize:test\n```\nThis will create a production build of your app (so that may take a bit), and assert that all the files defined for\neach bucket don't exceed its limits, after compression. In case of a failure the command will exit with a non-zero exit\ncode. So you can integrate this command into your CI workflow, and make your builds fail when the bundle size test\ndoes not pass.\n\nIf you do not want to build the app before running the tests you can disable the build by passing `--build-app=false`.\n\nIf you want to use a different build directory from the default one (`dist`), use `--build-dir=other-dist-directory`.\n\n### Configuration\n\nAfter installing the addon, a `config/bundlesize.js` file with a default configuration will be generated:\n\n```js\nmodule.exports = {\n  app: {\n    javascript: {\n      pattern: 'assets/*.js',\n      limit: '500KB',\n      compression: 'gzip'\n    },\n    css: {\n      pattern: 'assets/*.css',\n      limit: '50KB',\n      compression: 'gzip'\n    }\n  }\n};\n```\n\nIn this example, top level is defined by `app`, followed by two buckets, `javascript` and `css`. You can include as many apps and buckets as you wish. Each app supports multiple buckets and each bucket supports the following configuration properties:\n\n* `pattern`: a `glob` pattern (or array thereof) defining the files belonging to this bucket\n* `limit`: the maximum size all files defined by `pattern` may consume. you can use common size units like `B`, `KB`, `MB`\n* `compression`: what compression type to use before comparing:\n  * `gzip` (default)\n  * `brotli`: compress files using Brotli\n  * `none`: do not compress files at all\n\nTo override the location of the config path you can pass: `config-path=\"\u003cPATH TO CONFIG\u003e\"`\n\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaliber5%2Fember-cli-bundlesize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaliber5%2Fember-cli-bundlesize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaliber5%2Fember-cli-bundlesize/lists"}