{"id":17472438,"url":"https://github.com/drudv/dumpmeta-webpack-plugin","last_synced_at":"2025-03-21T06:31:52.602Z","repository":{"id":57217140,"uuid":"227713442","full_name":"drudv/dumpmeta-webpack-plugin","owner":"drudv","description":"Save Webpack build metadata to a file","archived":false,"fork":false,"pushed_at":"2020-11-15T21:44:37.000Z","size":140,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T19:41:43.430Z","etag":null,"topics":["hash","save","webpack","webpack-plugin","webpack-stats"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/drudv.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}},"created_at":"2019-12-12T23:11:49.000Z","updated_at":"2023-12-22T10:46:23.000Z","dependencies_parsed_at":"2022-08-28T21:40:15.596Z","dependency_job_id":null,"html_url":"https://github.com/drudv/dumpmeta-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudv%2Fdumpmeta-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudv%2Fdumpmeta-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudv%2Fdumpmeta-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudv%2Fdumpmeta-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drudv","download_url":"https://codeload.github.com/drudv/dumpmeta-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117619,"owners_count":20400742,"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":["hash","save","webpack","webpack-plugin","webpack-stats"],"created_at":"2024-10-18T17:13:57.928Z","updated_at":"2025-03-21T06:31:52.352Z","avatar_url":"https://github.com/drudv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Dump Metadata Plugin\n\nSave Webpack build metadata to a file.\n\n## Install\n\n`npm install dumpmeta-webpack-plugin --save-dev`\n\nor\n\n`yarn add dumpmeta-webpack-plugin --dev`\n\n## Usage\n\nwebpack.config.js:\n\n```js\nconst { DumpMetaPlugin } = require('dumpmeta-webpack-plugin');\n\nmodule.exports = {\n  ...\n\n  plugins: [\n    ...\n\n    new DumpMetaPlugin({\n      filename: 'dist/meta.json',\n      prepare: stats =\u003e ({\n        // add any other information you need to dump\n        hash: stats.hash,\n      })\n    }),\n  ]\n}\n```\n\nPlease refer to the [Webpack documentation](https://webpack.js.org/api/stats/) for all available properties of the Stats data.\n\n## Options\n\n|      Name      | Description                                                                                           | Default                         |\n| :------------: | :---------------------------------------------------------------------------------------------------- | :------------------------------ |\n| **`filename`** | Path to the output file                                                                               | `'meta.json'`                   |\n| **`prepare`**  | Extract properties from Webpack build metadata to save. These options should be serializable to JSON. | `stats =\u003e ({hash: stats.hash})` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudv%2Fdumpmeta-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrudv%2Fdumpmeta-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudv%2Fdumpmeta-webpack-plugin/lists"}