{"id":15649447,"url":"https://github.com/lucleray/next-size","last_synced_at":"2025-04-30T16:21:57.519Z","repository":{"id":37697665,"uuid":"156595181","full_name":"lucleray/next-size","owner":"lucleray","description":"Next.js plugin to print browser assets sizes","archived":false,"fork":false,"pushed_at":"2022-12-03T10:39:23.000Z","size":615,"stargazers_count":40,"open_issues_count":15,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T15:59:56.828Z","etag":null,"topics":["bundle-size","next","next-plugins","nextjs","size"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/next-size","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucleray.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-07T19:07:12.000Z","updated_at":"2023-04-19T08:39:19.000Z","dependencies_parsed_at":"2023-01-23T22:45:19.111Z","dependency_job_id":null,"html_url":"https://github.com/lucleray/next-size","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucleray%2Fnext-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucleray%2Fnext-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucleray%2Fnext-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucleray%2Fnext-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucleray","download_url":"https://codeload.github.com/lucleray/next-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739950,"owners_count":21635950,"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","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":["bundle-size","next","next-plugins","nextjs","size"],"created_at":"2024-10-03T12:29:49.550Z","updated_at":"2025-04-30T16:21:57.487Z","avatar_url":"https://github.com/lucleray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e ⚠️ This package has been deprecated because it can slow down your builds. Upgrade to Next.js 9+ to get [Build Output Statistics](https://nextjs.org/blog/next-9#build-output-statistics) out-of-the-box.\n\n# next-size\n\n**Next-size** is a next.js plugin to **print browser assets sizes** when running `next build`.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg  width=\"600px\" alt=\"browser assets sizes appear magically when running next build ✨\" src=\"demo.png\" /\u003e\n\u003c/div\u003e\n\n\u003e 🎁 Check out the [**example folder**](example) folder if you want to try `next-size` (the example includes css and dynamic imports).\n\n### Installation\n\n```\nyarn add next-size --dev\n```\n\n### Usage\n\nEdit your next configuration and wrap you config with `withSize`.\n\n```js\n// next.config.js\nconst withSize = require('next-size')\n\nmodule.exports = withSize()\n```\n\nThe size of the assets created will be showed when you run `next-build`\n\n### Options\n\nYou can specify `printRawSize` to print raw asset sizes instead of gzipped sizes.\n\n```js\n// next.config.js\nconst withSize = require('next-size')\n\nmodule.exports = withSize({\n  size: {\n    printRawSize: true\n  }\n})\n```\n\n### More\n\nInspired by :\n\n- create-react-app's [FileSizeReporter](https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/FileSizeReporter.js)\n- [size-plugin](https://github.com/GoogleChromeLabs/size-plugin) by @developit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucleray%2Fnext-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucleray%2Fnext-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucleray%2Fnext-size/lists"}