{"id":30887744,"url":"https://github.com/yungvldai/chunks-report-webpack-plugin","last_synced_at":"2025-09-08T14:10:18.243Z","repository":{"id":143315727,"uuid":"615354503","full_name":"yungvldai/chunks-report-webpack-plugin","owner":"yungvldai","description":"The plugin generates a report that contains all the assets of specific entrypoints","archived":false,"fork":false,"pushed_at":"2023-08-08T14:23:09.000Z","size":44,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T09:10:27.790Z","etag":null,"topics":["chunks","manifest","plugin","report","ssr","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/chunks-report-webpack-plugin","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/yungvldai.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-17T14:02:20.000Z","updated_at":"2023-12-18T18:56:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbbaf85d-18f6-426b-bcb7-3387bc29f05c","html_url":"https://github.com/yungvldai/chunks-report-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/yungvldai/chunks-report-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Fchunks-report-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Fchunks-report-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Fchunks-report-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Fchunks-report-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yungvldai","download_url":"https://codeload.github.com/yungvldai/chunks-report-webpack-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yungvldai%2Fchunks-report-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274196122,"owners_count":25239148,"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-09-08T02:00:09.813Z","response_time":121,"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":["chunks","manifest","plugin","report","ssr","webpack"],"created_at":"2025-09-08T14:10:16.279Z","updated_at":"2025-09-08T14:10:18.227Z","avatar_url":"https://github.com/yungvldai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chunks-report-webpack-plugin ![npm](https://img.shields.io/npm/v/chunks-report-webpack-plugin?style=plastic)\n\n\u003c!-- TOC tocDepth:2..3 chapterDepth:2..6 --\u003e\n\n- [What is it?](#what-is-it)\n- [Getting started](#getting-started)\n- [Usage](#usage)\n- [Options](#options)\n    - [`outputPath`](#outputpath)\n    - [`exclude`](#exclude)\n    - [`assetTypes`](#assettypes)\n\n\u003c!-- /TOC --\u003e\n\n## What is it?\n\nThe plugin generates a report that contains all the assets of specific entrypoints.\nThis report can be used to render the page on the server\n(to include only the necessary styles and scripts).\n\n**Report example**:\n\n```js\n{\n    \"index\": {\n        \"js\": [\"vendor.js\", \"index.build.js\"],\n        \"css\": [\"index.build.css\"]\n    },\n    \"office\": {\n        \"js\": [\"vendor.js\", \"office.build.js\"],\n        \"css\": [\"office.build.css\"]\n    }\n}\n```\n\n## Getting started\n\n```console\nnpm i -D chunks-report-webpack-plugin\n```\n\n## Usage\n\n```js\nconst ChunksReportPlugin = require('chunks-report-webpack-plugin');\n\n/** @type {webpack.Configuration} */\nconst config = {\n    ...\n    plugins: [\n        ...\n        new ChunksReportPlugin({\n            outputPath: 'build/chunks-report.json',\n            exclude: [\n                /hot-update/\n            ],\n            assetTypes: {\n                js: /\\.js$/,\n                css: /\\.css$/,\n            },\n        }),\n        ...\n    ],\n    ...\n};\n```\n\n## Options\n\n### `outputPath`\n\n**Type**: `string`\n\n**Default**: `'chunks-report.json'`\n\n**Description**: Allows you to specify the path to the file that will contain the report.\n\n### `exclude`\n\n**Type**: `string[]`\n\n**Default**: `[]`\n\n**Description**: Allows you to specify patterns for files that should not be included in the report\n\n### `assetTypes`\n\n**Type**: \n\n```ts\n{ \n    [type: string]: RegExp \n}\n```\n\n**Default**: \n\n```js\n{\n    js: /\\.js$/,\n    css: /\\.css$/,\n}\n```\n\n**Description**: \n\nAllows you to specify the types of assets that should be included in the report.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyungvldai%2Fchunks-report-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyungvldai%2Fchunks-report-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyungvldai%2Fchunks-report-webpack-plugin/lists"}