{"id":15434312,"url":"https://github.com/cenfun/webpack-stats-report","last_synced_at":"2025-04-19T18:09:27.551Z","repository":{"id":40519065,"uuid":"256169860","full_name":"cenfun/webpack-stats-report","owner":"cenfun","description":"Generating Webpack Stats Report in HTML Grid","archived":false,"fork":false,"pushed_at":"2023-10-31T04:21:26.000Z","size":5024,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T08:39:30.520Z","etag":null,"topics":["grid","report","stats","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://cenfun.github.io/webpack-stats-report/","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/cenfun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-04-16T09:32:56.000Z","updated_at":"2024-05-15T07:37:05.000Z","dependencies_parsed_at":"2023-11-12T11:30:55.428Z","dependency_job_id":"545a80c5-f651-4836-8296-b9c9c6a19ac7","html_url":"https://github.com/cenfun/webpack-stats-report","commit_stats":{"total_commits":165,"total_committers":2,"mean_commits":82.5,"dds":"0.36969696969696975","last_synced_commit":"e63f2273944cf7a16afe3f56d71a5a41bbc23e0c"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenfun%2Fwebpack-stats-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenfun%2Fwebpack-stats-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenfun%2Fwebpack-stats-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cenfun%2Fwebpack-stats-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cenfun","download_url":"https://codeload.github.com/cenfun/webpack-stats-report/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249758830,"owners_count":21321608,"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":["grid","report","stats","webpack","webpack-plugin"],"created_at":"2024-10-01T18:38:46.836Z","updated_at":"2025-04-19T18:09:27.530Z","avatar_url":"https://github.com/cenfun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Stats Report\n\u003e Generating [Webpack](https://github.com/webpack/webpack) [Stats](https://webpack.js.org/api/stats/) Report in HTML Grid. \n\n![npm](https://img.shields.io/npm/v/webpack-stats-report)\n![npm](https://img.shields.io/npm/dt/webpack-stats-report)\n\n## Preview Example Reports\n* [stats-report-wsr.html](https://cenfun.github.io/webpack-stats-report/stats-report-wsr.html)\n* [stats-report-test.html](https://cenfun.github.io/webpack-stats-report/stats-report-test.html)\n\n## Install\n```sh\nnpm i webpack-stats-report -D\n```\n## Usage\n\n### As a webpack plugin\n```js\n// webpack.config.js\nconst StatsReportPlugin = require(\"webpack-stats-report\").StatsReportPlugin;\nmodule.exports = {\n    // ... configuration settings here ...\n    plugins: [new StatsReportPlugin({ \n        //options\n        title: \"Stats Report - webpack-stats-report\",\n        output: \".temp/stats-report.html\"\n    })]\n};\n```\n\n### As a Node API\n```js\nconst webpack = require('webpack');\nconst StatsReportGenerator = require(\"webpack-stats-report\").StatsReportGenerator;\nwebpack(webpackConfig, async (err, stats) =\u003e {\n   await StatsReportGenerator({\n        //options\n        title: \"Stats Report - webpack-stats-report\",\n        output: \".temp/stats-report.html\",\n        //require one more option stats\n        stats: stats.toJson({\n            //source for gzipSize = true\n            source: true,\n            reasons: false,\n            chunkModules: false\n        })\n    });\n});\n```\n\n## Options\n```js\n//default options\n{\n    title: \"Stats Report\",\n    output: \"stats-report.html\",\n    outputStatsJson: false,\n    gzipSize: false\n    ...\n}\n```\nmore details: [options.js](lib/options.js)\n\n## Test\n```sh\nnpm run test\n```\nsee [test/test.js](test/test.js)\n\n## Changelog\nsee [CHANGELOG.md](CHANGELOG.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenfun%2Fwebpack-stats-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcenfun%2Fwebpack-stats-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcenfun%2Fwebpack-stats-report/lists"}