{"id":15018975,"url":"https://github.com/soundcloud/chunk-manifest-webpack-plugin","last_synced_at":"2025-05-16T07:07:15.255Z","repository":{"id":19965500,"uuid":"23232442","full_name":"soundcloud/chunk-manifest-webpack-plugin","owner":"soundcloud","description":"Allows exporting a manifest that maps entry chunk names to their output files, instead of keeping the mapping inside the webpack bootstrap.","archived":false,"fork":false,"pushed_at":"2023-07-12T11:51:30.000Z","size":442,"stargazers_count":394,"open_issues_count":39,"forks_count":72,"subscribers_count":107,"default_branch":"master","last_synced_at":"2025-05-10T10:36:55.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/soundcloud.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"2014-08-22T16:47:55.000Z","updated_at":"2024-12-27T01:19:10.000Z","dependencies_parsed_at":"2024-06-18T12:34:21.936Z","dependency_job_id":"a97ed780-6719-4575-a033-2b1b69c684b0","html_url":"https://github.com/soundcloud/chunk-manifest-webpack-plugin","commit_stats":{"total_commits":31,"total_committers":14,"mean_commits":"2.2142857142857144","dds":0.5806451612903225,"last_synced_commit":"9b9b27777274931f57a24e9747d89d7b77b21445"},"previous_names":["diurnalist/chunk-manifest-webpack-plugin"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fchunk-manifest-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fchunk-manifest-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fchunk-manifest-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fchunk-manifest-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soundcloud","download_url":"https://codeload.github.com/soundcloud/chunk-manifest-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453645,"owners_count":22073616,"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":[],"created_at":"2024-09-24T19:52:41.730Z","updated_at":"2025-05-16T07:07:10.230Z","avatar_url":"https://github.com/soundcloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chunk-manifest-webpack-plugin\n\nAllows exporting a JSON file that maps chunk ids to their resulting asset files. Webpack can then read this mapping, assuming it is provided somehow on the client, instead of storing a mapping (with chunk asset hashes) in the bootstrap script, which allows to actually leverage long-term caching.\n\n## Usage\n\nInstall via npm:\n\n```shell\nnpm install --save-dev chunk-manifest-webpack-plugin\n```\n\nInstall via yarn:\n\n```shell\nyarn add --dev chunk-manifest-webpack-plugin\n```\n\nAnd then require and provide to webpack:\n\n```javascript\n// in webpack.config.js or similar\nconst ChunkManifestPlugin = require('chunk-manifest-webpack-plugin');\n\nmodule.exports = {\n  // your config values here\n  plugins: [\n    new ChunkManifestPlugin({\n      filename: 'manifest.json',\n      manifestVariable: 'webpackManifest',\n      inlineManifest: false\n    })\n  ]\n};\n```\n\n### Options\n\n#### `filename`\n\nWhere the manifest will be exported to on bundle compilation. This will be relative to the main webpack output directory. Default = `\"manifest.json\"`\n\n#### `manifestVariable`\n\nWhat JS variable on the client webpack should refer to when requiring chunks. Default = `\"webpackManifest\"`\n\n#### `inlineManifest`\n\nWhether or not to write the manifest output into the [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin). Default = `false`\n\n```html\n// index.ejs\n\u003cbody\u003e\n    \u003c!-- app --\u003e\n    \u003c%= htmlWebpackPlugin.files.webpackManifest %\u003e\n\u003c/body\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundcloud%2Fchunk-manifest-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoundcloud%2Fchunk-manifest-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundcloud%2Fchunk-manifest-webpack-plugin/lists"}