{"id":17110866,"url":"https://github.com/ehyland/better-stats-webpack-plugin","last_synced_at":"2026-05-17T18:07:17.516Z","repository":{"id":114867436,"uuid":"91251808","full_name":"ehyland/better-stats-webpack-plugin","owner":"ehyland","description":"Better stats for webpack builds","archived":false,"fork":false,"pushed_at":"2018-04-07T02:07:33.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-19T02:18:47.705Z","etag":null,"topics":["webpack","webpack-plugin","webpack-stats"],"latest_commit_sha":null,"homepage":null,"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/ehyland.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-14T15:13:58.000Z","updated_at":"2019-04-01T21:13:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a50fc25d-16e8-4ebe-b262-39d7da673d25","html_url":"https://github.com/ehyland/better-stats-webpack-plugin","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"2c8deb7d75486d74b67b600e385e58b99248a70d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehyland%2Fbetter-stats-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehyland%2Fbetter-stats-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehyland%2Fbetter-stats-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehyland%2Fbetter-stats-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehyland","download_url":"https://codeload.github.com/ehyland/better-stats-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013985,"owners_count":20547179,"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":["webpack","webpack-plugin","webpack-stats"],"created_at":"2024-10-14T16:47:08.302Z","updated_at":"2026-05-17T18:07:12.478Z","avatar_url":"https://github.com/ehyland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ebetter-stats-webpack-plugin\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    Usable stats output for webpack builds.\n\u003cp\u003e\n\n\u003ch2 align=\"center\"\u003eInstall\u003c/h2\u003e\n\n```bash\nnpm install --save-dev better-stats-webpack-plugin\n```\n\n\u003ch2 align=\"center\"\u003eUsage\u003c/h2\u003e\n\n```js\nconst BetterStatsWebpackPlugin = require(\"better-stats-webpack-plugin\");\n\nmodule.exports = {\n  entry: {\n    main: 'src/app.js',\n    admin: 'src/admin.js'\n  },\n  output: {\n    filename: '[name].js',\n    path: path.resolve(workspace, 'dist'),\n    publicPath: 'https://s3.eamon.sh/my-app/'\n  },\n  module: {\n    rules: [...]\n  },\n  plugins: [\n    new BetterStatsWebpackPlugin({ statsFile: './better-stats.json' }),\n  ]\n}\n```\n\n\u003ch2 align=\"center\"\u003eResult\u003c/h2\u003e\n\n```js\n{\n  \"[entry]_js\": [\"[public-file-path].js\"],\n  \"[entry]_js_import\": \"\u003cscript src=\\\"[public-file-path].js\\\"\u003e\u003c/script\u003e\",\n  \"[entry]_css\": [\"[public-file-path].css\"],\n  \"[entry]_css_import\": \"\u003clink rel=\\\"stylesheet\\\" href=\\\"[public-file-path].css\\\"/\u003e\",\n  \n  \"assets\": [\n    \"src/cat.gif\": \"[public-file-path].gif\"\n  ]\n}\n```\n\n## Options\n\n### `statsFile`\n**Description:** Better stats output path  \n**Default:** $PWD/better-stats.json\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehyland%2Fbetter-stats-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehyland%2Fbetter-stats-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehyland%2Fbetter-stats-webpack-plugin/lists"}