{"id":16234108,"url":"https://github.com/zackify/webpack-force-hash-plugin","last_synced_at":"2025-10-19T16:53:02.772Z","repository":{"id":72855723,"uuid":"85024791","full_name":"zackify/webpack-force-hash-plugin","owner":"zackify","description":"Only changes the vendor hash if needed","archived":false,"fork":false,"pushed_at":"2017-03-15T06:05:37.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T11:19:21.171Z","etag":null,"topics":[],"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/zackify.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-03-15T03:26:17.000Z","updated_at":"2017-03-15T20:03:26.000Z","dependencies_parsed_at":"2023-03-09T01:45:34.290Z","dependency_job_id":null,"html_url":"https://github.com/zackify/webpack-force-hash-plugin","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"61d9383f7bd2bf67bea7d10794158c344ec0aa99"},"previous_names":["zackify/webpack-changed-vendor-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Fwebpack-force-hash-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Fwebpack-force-hash-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Fwebpack-force-hash-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Fwebpack-force-hash-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackify","download_url":"https://codeload.github.com/zackify/webpack-force-hash-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569125,"owners_count":20959760,"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-10-10T13:15:01.705Z","updated_at":"2025-10-19T16:52:57.746Z","avatar_url":"https://github.com/zackify.png","language":"JavaScript","readme":"## webpack-force-hash-plugin\n\nIf you use an env variable in your webpack output:\n\n```js\noutput: {\n  path: 'public/',\n  filename: `app.${process.env.COMMIT_HASH || 'dev'}.[name].js`,\n  chunkFilename: `${process.env.COMMIT_HASH || 'dev'}.[id].chunk.js`,\n  publicPath: '/',\n}\n```\n\nThen your vendor bundle is going to have a changed hash even when its not changed. This solves that problem but always using webpack's hash for the file name. Is this something you should be doing? Maybe not. I couldn't think of a way to keep the vendor from changing other than building this little plugin, or getting rid of the commit hash for everythig else.\n\n\n## Install\n\n```\nnpm install webpack-force-vendor-hash-plugin\n```\n\n## Usage\n\n```js\nconst ForceHashPlugin = require('webpack-force-hash-plugin');\n\nplugins: [\n  new ForceHashPlugin({ name: 'vendor' }), // name of the entry point\n  new webpack.optimize.CommonsChunkPlugin({\n    name: 'vendor',\n  }),\n],\n```\n\n## Why you should not use this\n\n- You should probably just use webpack's hash and not a commit hash\n- This doesn't feel right ;)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Fwebpack-force-hash-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackify%2Fwebpack-force-hash-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Fwebpack-force-hash-plugin/lists"}