{"id":19715762,"url":"https://github.com/zadzbw/favicon-hash-webpack-plugin","last_synced_at":"2025-04-29T20:30:40.700Z","repository":{"id":29231746,"uuid":"120589631","full_name":"zadzbw/favicon-hash-webpack-plugin","owner":"zadzbw","description":"an extension to add favicon hash for the html-webpack-plugin","archived":false,"fork":false,"pushed_at":"2023-09-27T20:44:18.000Z","size":278,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:04:03.683Z","etag":null,"topics":["favicon","html-webpack-plugin","webpack","webpack-plugin"],"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/zadzbw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T08:58:50.000Z","updated_at":"2022-05-26T10:33:53.000Z","dependencies_parsed_at":"2023-01-14T14:24:50.157Z","dependency_job_id":null,"html_url":"https://github.com/zadzbw/favicon-hash-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zadzbw%2Ffavicon-hash-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zadzbw%2Ffavicon-hash-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zadzbw%2Ffavicon-hash-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zadzbw%2Ffavicon-hash-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zadzbw","download_url":"https://codeload.github.com/zadzbw/favicon-hash-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578259,"owners_count":21612002,"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":["favicon","html-webpack-plugin","webpack","webpack-plugin"],"created_at":"2024-11-11T22:39:20.595Z","updated_at":"2025-04-29T20:30:40.057Z","avatar_url":"https://github.com/zadzbw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# favicon-hash-webpack-plugin\n\n[![NPM version][npm-image]][npm-url]\n[![Node version][node-version-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n\nThis is an extension plugin for [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) - it can add hash to favicon file, just like `favicon.[hash].ico`, the hash algorithm is md5 now, and use [blueimp-md5](https://github.com/blueimp/JavaScript-MD5) to calculate hash.\n\n## Installation\n\n### Notice\n\n\u003e * it requires node **v8** or higher\n\u003e * it requires [webpack](https://webpack.js.org/) **\u003e=v4.0.0** and [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin) **\u003e=3.0.0**\n\u003e * if you want to use this plugin in webpack v3, please check [v1 branch](https://github.com/zadzbw/favicon-hash-webpack-plugin/tree/v1)\n\n### Install\n\nYou can install this plugin with npm:\n\n```bash\nnpm install favicon-hash-webpack-plugin --save-dev\n```\n\nor you can use yarn:\n\n```bash\nyarn add favicon-hash-webpack-plugin -D\n```\n\n## Usage\n\nFirst, require the plugin in your webpack config:\n\n```js\nconst FaviconHashPlugin = require('favicon-hash-webpack-plugin');\n```\n\nfinally, set favicon in `html-webpack-plugin` and add the plugin in `plugins` options after `html-webpack-plugin`\n\n```js\n...\nplugins: [\n  new HtmlWebpackPlugin({\n    favicon: 'path-to-favicon/favicon.ico', // favicon path\n  }),\n  new FaviconHashPlugin({}),\n],\n...\n```\n\nand the following icon link will be injected into `\u003chead\u003e`:\n\n```html\n\u003clink rel=\"shortcut icon\" href=\"your-public-path/favicon.e513b5416b8dc82513c174d5ccde5c21.ico\"\u003e\n```\n\n## Options\n\nThis plugin only has the default options now.\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n[npm-image]: https://badgen.net/npm/v/favicon-hash-webpack-plugin\n[node-version-image]: https://badgen.net/npm/node/favicon-hash-webpack-plugin\n[npm-url]: https://www.npmjs.com/package/favicon-hash-webpack-plugin\n[travis-image]: https://travis-ci.org/zadzbw/favicon-hash-webpack-plugin.svg?branch=master\n[travis-url]: https://travis-ci.org/zadzbw/favicon-hash-webpack-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzadzbw%2Ffavicon-hash-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzadzbw%2Ffavicon-hash-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzadzbw%2Ffavicon-hash-webpack-plugin/lists"}