{"id":16346449,"url":"https://github.com/hxlniada/webpack-hashed-chunkids","last_synced_at":"2025-07-26T09:34:18.966Z","repository":{"id":72272279,"uuid":"113560726","full_name":"hxlniada/webpack-hashed-chunkids","owner":"hxlniada","description":"a plugin to help webpack to generate unique chunk id based on unique module id","archived":false,"fork":false,"pushed_at":"2019-05-22T09:03:13.000Z","size":11,"stargazers_count":16,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T15:13:42.789Z","etag":null,"topics":["chunk","hash","webpack","webpack-hashed-chunkids"],"latest_commit_sha":null,"homepage":"","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/hxlniada.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-12-08T10:08:50.000Z","updated_at":"2022-04-19T12:21:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d845fb0c-9c8c-47aa-9a9d-a4a0d0c23dcb","html_url":"https://github.com/hxlniada/webpack-hashed-chunkids","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"8972683513f34a3b46888fb22fa81fb16f3a691a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hxlniada/webpack-hashed-chunkids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxlniada%2Fwebpack-hashed-chunkids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxlniada%2Fwebpack-hashed-chunkids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxlniada%2Fwebpack-hashed-chunkids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxlniada%2Fwebpack-hashed-chunkids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hxlniada","download_url":"https://codeload.github.com/hxlniada/webpack-hashed-chunkids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxlniada%2Fwebpack-hashed-chunkids/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267145673,"owners_count":24042651,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chunk","hash","webpack","webpack-hashed-chunkids"],"created_at":"2024-10-11T00:35:22.855Z","updated_at":"2025-07-26T09:34:18.918Z","avatar_url":"https://github.com/hxlniada.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-hashed-chunkids\n[![npm package](https://img.shields.io/npm/v/webpack-hashed-chunkids.svg)](https://www.npmjs.org/package/webpack-hashed-chunkids)\n[![npm downloads](http://img.shields.io/npm/dm/webpack-hashed-chunkids.svg)](https://www.npmjs.org/package/webpack-hashed-chunkids)\n\u003e a plugin to help webpack to generate unique chunk id based on module id\n### why\nwebpack has official plugins to generate a unique module id: [module-identifiers](https://webpack.js.org/guides/caching/#module-identifiers)\n\nbut what about chunk id? I can't find a solution.\n\nwhat is chunk id? open a bundled file, you can find something like this:\n\n```\nwebpackJsonp([117],{...})\n```\n\nand the number 117 is chunk id\n\n### dependencies\n\n* [NamedModulesPlugin](https://webpack.js.org/plugins/named-modules-plugin/) or [HashedModuleIdsPlugin](https://webpack.js.org/plugins/hashed-module-ids-plugin/) or other plugins generate unique module id\n\n### install\n```\nnpm install webpack-hashed-chunkids --save-dev\n```\n\n### features\n* generate unique chunk id based on unique module id\n\n### usage\n```javascript\nconst HashedChunkidsPlugin = require('webpack-hashed-chunkids');\n\nplugins: [\n    new webpack.HashedModuleIdsPlugin(),\n    new HashedChunkidsPlugin({\n        hashFunction: 'md5', // The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.\n        hashDigest: 'hex', // The encoding to use when generating the hash, defaults to 'hex'. All encodings from Node.JS' hash.digest are supported.\n        hashDigestLength: 4 // The prefix length of the hash digest to use, defaults to 4.\n    })\n]\n```\n* [crypto.createHash](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options)\n* [hash.digest](https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxlniada%2Fwebpack-hashed-chunkids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhxlniada%2Fwebpack-hashed-chunkids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxlniada%2Fwebpack-hashed-chunkids/lists"}