{"id":17025494,"url":"https://github.com/dsebastien/webpack-sha-hash","last_synced_at":"2025-04-12T11:22:49.872Z","repository":{"id":143238557,"uuid":"51574108","full_name":"dsebastien/webpack-sha-hash","owner":"dsebastien","description":"Plugin to replace webpack's default chunkhash hashes by SHA hashes","archived":false,"fork":false,"pushed_at":"2018-06-02T18:15:33.000Z","size":48,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T11:33:52.556Z","etag":null,"topics":["hashing-algorithm","plugin","plugins","sha-hashes","webpack"],"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/dsebastien.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2016-02-12T07:52:50.000Z","updated_at":"2018-11-10T21:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdaecbb3-058c-46d0-96f6-e5f6f37176a9","html_url":"https://github.com/dsebastien/webpack-sha-hash","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsebastien%2Fwebpack-sha-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsebastien%2Fwebpack-sha-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsebastien%2Fwebpack-sha-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsebastien%2Fwebpack-sha-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsebastien","download_url":"https://codeload.github.com/dsebastien/webpack-sha-hash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248558445,"owners_count":21124288,"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":["hashing-algorithm","plugin","plugins","sha-hashes","webpack"],"created_at":"2024-10-14T07:29:20.030Z","updated_at":"2025-04-12T11:22:49.848Z","avatar_url":"https://github.com/dsebastien.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-sha-hash\n\n[![NPM version](https://img.shields.io/npm/v/webpack-sha-hash.svg)](https://www.npmjs.com/package/webpack-sha-hash)\n[![Downloads](https://img.shields.io/npm/dm/webpack-sha-hash.svg)](https://www.npmjs.com/package/webpack-sha-hash)\n[![Build Status](https://secure.travis-ci.org/dsebastien/webpack-sha-hash.png?branch=master)](https://travis-ci.org/dsebastien/webpack-sha-hash)\n[![Dependency Status](https://david-dm.org/dsebastien/webpack-sha-hash.svg?theme=shields.io\u0026style=flat)](https://david-dm.org/dsebastien/webpack-sha-hash)\n[![devDependency Status](https://david-dm.org/dsebastien/webpack-sha-hash/dev-status.svg?theme=shields.io\u0026style=flat)](https://david-dm.org/dsebastien/webpack-sha-hash#info=devDependencies)\n[![License](https://img.shields.io/cocoapods/l/AFNetworking.svg)](LICENSE.MD)\n\n## About\nUsing this Webpack plugin, you can easily generate SHA hashes for your Webpack chunks.\nThis plugin replaces the standard chunkhash of Webpack with SHA.\n\nThis project is a fork of https://github.com/erm0l0v/webpack-md5-hash based on SHA instead of MD5.\nWhy? Because MD5 is a thing of the past, so why continue to use it? :)\n\nSHA hashes are created using [sha.js](https://www.npmjs.com/package/sha.js)\n\n## Status \u0026 roadmap\nCheck out the issues/labels and milestones to get an idea of what's next.\nFor existing features, refer to the previous sections.\n\nCheck out the [change log](CHANGELOG.MD)\n\n## Installation\n``` bash\nnpm install webpack-sha-hash --save-dev\n```\n\n## Usage\nLike most plugins, you just need to import it and add it to your plugins array:\n\n``` javascript\nconst WebpackSHAHash = require('webpack-sha-hash');\n\nmodule.exports = {\n    // ...\n    output: {\n        //...\n        chunkFilename: \"[chunkhash].[id].chunk.js\"\n    },\n    plugins: [\n        new WebpackSHAHash()\n    ]\n};\n```\n\nEnjoy!\n\n## Options\n\n### hashingAlgorithm: use a different hashing algorithm\nThe SHA-256 hashing algorithm is used by default. If you want, you can use any of the supported algorithms supported by sha.js: https://www.npmjs.com/package/sha.js\n\nTo override the algorithm, just provide  the name of the one you want to use to the plugin:\n\n``` javascript\n...\n    plugins: [\n        new WebpackSHAHash({\n            hashingAlgorithm: \"sha512\"\n        })\n    ]\n```\n\n## Contributing\nTake a look at the project's open [issues](https://github.com/dsebastien/webpack-sha-hash/issues) and [milestones](https://github.com/dsebastien/webpack-sha-hash/milestones).\n\nIf you know what to do then:\n* Fork the project\n* Create a feature branch in your fork\n* Rebase if needed to keep the project history clean\n* Commit your changes \u0026 push to GitHub\n* Try and flood me with pull requests :)\n\n## Building from source\n``` bash\nnpm run setup\nnpm\n```\n\n## Releasing a version\n* commit all changes to include in the release\n* edit the version in package.json\n  * respect semver\n* update CHANGELOG.MD\n* commit\n* git tag \u003cversion\u003e\n* git push --tags\n* draft the release on GitHub (add description, link to current changelot, etc)\n* npm publish\n\n## Authors\n### Sebastien Dubois\n* [@Blog](https://www.dsebastien.net)\n* [@Twitter](https://twitter.com/dSebastien)\n* [@GitHub](https://github.com/dSebastien)\n\n## License\nThis project and all associated source code is licensed under the terms of the [MIT License](https://en.wikipedia.org/wiki/MIT_License).\n\n## Jetbrains love\nWe're supported by [Jetbrains](https://www.jetbrains.com) and their awesome [support for open source](https://www.jetbrains.com/buy/opensource/), thanks to which we are able to use the best products on the market to work on this open source project!\n\n\u003ca href=\"https://www.jetbrains.com\"\u003e\u003cimg src=\"http://www.underconsideration.com/brandnew/archives/jetbrains_logo_detail.jpg\" width=\"144px\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsebastien%2Fwebpack-sha-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsebastien%2Fwebpack-sha-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsebastien%2Fwebpack-sha-hash/lists"}