{"id":15145747,"url":"https://github.com/soundcloud/git-sha-webpack-plugin","last_synced_at":"2025-10-19T16:32:12.089Z","repository":{"id":19964944,"uuid":"23231880","full_name":"soundcloud/git-sha-webpack-plugin","owner":"soundcloud","description":"Tag your webpack bundles with a Git SHA linked to the latest commit on that bundle","archived":false,"fork":false,"pushed_at":"2023-04-09T21:00:28.000Z","size":13,"stargazers_count":27,"open_issues_count":3,"forks_count":7,"subscribers_count":105,"default_branch":"master","last_synced_at":"2025-01-29T21:24:20.763Z","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":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}},"created_at":"2014-08-22T16:28:22.000Z","updated_at":"2022-01-30T17:02:28.000Z","dependencies_parsed_at":"2022-08-27T03:51:50.755Z","dependency_job_id":null,"html_url":"https://github.com/soundcloud/git-sha-webpack-plugin","commit_stats":null,"previous_names":["diurnalist/git-sha-webpack-plugin"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fgit-sha-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fgit-sha-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fgit-sha-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundcloud%2Fgit-sha-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soundcloud","download_url":"https://codeload.github.com/soundcloud/git-sha-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237172118,"owners_count":19266614,"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-26T11:42:28.683Z","updated_at":"2025-10-19T16:32:11.819Z","avatar_url":"https://github.com/soundcloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-sha-webpack-plugin\n\nAllows tagging a webpack bundle or chunk with the Git SHA of the latest commit affecting that bundle. Useful for when you want to use long-term caching of your bundles, but want to tie the hash to something real and traceable.\n\n## Usage\n\nInstall via npm:\n\n```shell\nnpm install git-sha-webpack-plugin\n```\n\nAnd then require for use in webpack:\n\n```javascript\n// in webpack.config.js (or similar)\nvar GitSHAPlugin = require('git-sha-webpack-plugin');\n\nmodule.exports = {\n  \n  // your config values here\n\n  output: {\n    filename: '[chunkgitsha].js'\n  },\n  plugins: [\n    new GitSHAPlugin({shaLength: 7})\n  ]\n}\n```\n\n### Options\n\n#### `shaLength`\n\nAllows truncating the SHA to a specific character length. 7 by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundcloud%2Fgit-sha-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoundcloud%2Fgit-sha-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundcloud%2Fgit-sha-webpack-plugin/lists"}