{"id":20588466,"url":"https://github.com/znck/webpack-plugin-chunk-manifest","last_synced_at":"2026-01-24T03:11:12.935Z","repository":{"id":66141287,"uuid":"92576381","full_name":"znck/webpack-plugin-chunk-manifest","owner":"znck","description":"Record chunks in a JSON file","archived":false,"fork":false,"pushed_at":"2017-05-27T07:35:46.000Z","size":149,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T21:53:14.739Z","etag":null,"topics":["plugin","webpack"],"latest_commit_sha":null,"homepage":null,"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/znck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-27T06:26:39.000Z","updated_at":"2017-12-18T11:16:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5835beb-b75b-414d-9303-c329ddddff25","html_url":"https://github.com/znck/webpack-plugin-chunk-manifest","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"802626097fbe7d3b21fe041f02234190eac7b7c9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fwebpack-plugin-chunk-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fwebpack-plugin-chunk-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fwebpack-plugin-chunk-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fwebpack-plugin-chunk-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znck","download_url":"https://codeload.github.com/znck/webpack-plugin-chunk-manifest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968754,"owners_count":21191158,"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","webpack"],"created_at":"2024-11-16T07:24:47.533Z","updated_at":"2026-01-24T03:11:12.866Z","avatar_url":"https://github.com/znck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv class=\"text-xs-center\" align=\"center\" style=\"margin: 20px\"\u003e\n  \u003cimg src=\"./docs/assets/images/logo.png\" height=\"255\"\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"text-xs-center\" align=\"center\"\u003e\n\n[![npm](https://img.shields.io/npm/v/webpack-plugin-chunk-manifest.svg)](https://www.npmjs.com/package/webpack-plugin-chunk-manifest)\n[![webpack 2](https://img.shields.io/badge/webpack-2.x-brightgreen.svg)](https://webpack.js.org/)\n[![npm downloads](https://img.shields.io/npm/dm/webpack-plugin-chunk-manifest.svg)](https://www.npmjs.com/package/webpack-plugin-chunk-manifest)\n\n\u003c/div\u003e\n\n## Introduction\nExport a JSON file that maps chunk ids to their resulting asset files. This JSON file could be used for prefetch/preload.\n\n\u003e Looking to contribute? Pick up [an issue](https://github.com/znck/webpack-plugin-chunk-manifest/issues)!\n\n## Documentation\n#### Installation\n```bash\nyarn add --dev webpack-plugin-chunk-manifest\n```\n\n#### Usage\n``` js\n// File: webpack.config.js\nconst ChunkManifest = require('webpack-plugin-chunk-manifest');\n\nmodule.exports = {\n  ...\n  plugins: [\n    new ChunkManifest(),\n  ],\n  ...\n}\n```\n\n#### Options\n- filename: Chunk manifest would be stored in this file. Default: `manifest.json`\n  ``` js\n  new ChunkManifest({ filename: 'config/manifest.json' })\n  ```\n- transform: Transform chunks before storing. \n  ``` js\n  new ChunkManifest({ \n    tranform (chunks) {\n      // Remove manifest.js from chunks.\n      Object.keys(chunks).forEach(key =\u003e {\n        if (/manifest\\.js$/.test(chunks[key])) {\n          delete chunks[key]\n        }\n      })\n    \n      return chunks\n    } \n  })\n  ```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznck%2Fwebpack-plugin-chunk-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznck%2Fwebpack-plugin-chunk-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznck%2Fwebpack-plugin-chunk-manifest/lists"}