{"id":26836650,"url":"https://github.com/nimacsoft/razzle-plugin-bundle-analyzer","last_synced_at":"2025-04-30T13:28:09.582Z","repository":{"id":34931910,"uuid":"191763930","full_name":"nimacsoft/razzle-plugin-bundle-analyzer","owner":"nimacsoft","description":"📰 Using Webpack Bundle Analyzer with Razzle","archived":false,"fork":false,"pushed_at":"2023-01-07T14:00:19.000Z","size":863,"stargazers_count":5,"open_issues_count":11,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-30T13:28:07.917Z","etag":null,"topics":["plugin","razzle","webpack-bundle-analyzer"],"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/nimacsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-13T13:00:40.000Z","updated_at":"2024-08-12T10:48:34.000Z","dependencies_parsed_at":"2023-01-15T10:37:52.338Z","dependency_job_id":null,"html_url":"https://github.com/nimacsoft/razzle-plugin-bundle-analyzer","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/nimacsoft%2Frazzle-plugin-bundle-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimacsoft%2Frazzle-plugin-bundle-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimacsoft%2Frazzle-plugin-bundle-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimacsoft%2Frazzle-plugin-bundle-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimacsoft","download_url":"https://codeload.github.com/nimacsoft/razzle-plugin-bundle-analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251712168,"owners_count":21631346,"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":["plugin","razzle","webpack-bundle-analyzer"],"created_at":"2025-03-30T16:28:52.855Z","updated_at":"2025-04-30T13:28:09.555Z","avatar_url":"https://github.com/nimacsoft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/razzle-plugin-bundle-analyzer.svg)](https://badge.fury.io/js/razzle-plugin-bundle-analyzer)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n# razzle-plugin-bundle-analyzer\nThis package contains a plugin for using webpack-bundle-analyzer with Razzle\n\nUsage in Razzle Projects\n```sh\nyarn add razzle-plugin-bundle-analyzer --dev\n```\n\ncreate a **razzle.config.js** file in root directory of project (next to the *package.json*) and put this content inside it\n\nUsing the plugin with the default options\n```javascript\n// razzle.config.js\n\nmodule.exports = {\n  plugins: ['bundle-analyzer'],\n};\n```\n\n## With custom options:\n\n```javascript\n// razzle.config.js\n\nmodule.exports = {\n  plugins: [\n    {\n      name: 'bundle-analyzer',\n      options: {\n        concatenateModules: false\n      }\n    }\n  ]\n};\n```\n\n## Options\nconcatenateModules: *boolean* (defaults: false)\n\nSet `concatenateModules` to `true` if you want to webpack to find segments of the module graph which can be safely concatenated into a single module\n\n### Customizing\nYou can also pass other [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) options in the options array. For example, to use this in Docker environments, you can set the `analyzerHost` to `0.0.0.0`.\n\n```javascript\n// razzle.config.js\n\nmodule.exports = {\n  plugins: [\n    {\n      name: 'bundle-analyzer',\n      options: {\n        analyzerHost: '0.0.0.0'\n      }\n    }\n  ]\n};\n```\n\nSee the full list of possible options [here](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin)\n\n## Run Bundle Analyzer\n\nCraete a new **script** in *package.json*\n\n```json\n\"analyze\": \"BUNDLE_ANALYZE=true razzle build\",\n```\n\nand start by run this command in terminal\n```sh\nyarn analyze\n```\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/nimaa77\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/25016067?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNima Arefi\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-nimaa77\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/nimacsoft/razzle-plugin-bundle-analyzer/commits?author=nimaa77\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/nimacsoft/razzle-plugin-bundle-analyzer/commits?author=nimaa77\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimacsoft%2Frazzle-plugin-bundle-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimacsoft%2Frazzle-plugin-bundle-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimacsoft%2Frazzle-plugin-bundle-analyzer/lists"}