Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

favicon-hash-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

favicon-hash-webpack-plugin

an extension to add favicon hash for the html-webpack-plugin

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
increased by25.18%
Maintainers
1
Weekly downloads
 
Created
Source

favicon-hash-webpack-plugin

NPM version Node version Build Status

This is an extension plugin for 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 to calculate hash.

Installation

Notice

  • it requires node v8 or higher
  • it requires webpack >=v4.0.0 and html-webpack-plugin >=3.0.0
  • if you want to use this plugin in webpack v3, please check v1 branch

Install

You can install this plugin with npm:

npm install favicon-hash-webpack-plugin --save-dev

or you can use yarn:

yarn add favicon-hash-webpack-plugin -D

Usage

First, require the plugin in your webpack config:

const FaviconHashPlugin = require('favicon-hash-webpack-plugin');

finally, set favicon in html-webpack-plugin and add the plugin in plugins options after html-webpack-plugin

...
plugins: [
  new HtmlWebpackPlugin({
    favicon: 'path-to-favicon/favicon.ico', // favicon path
  }),
  new FaviconHashPlugin({}),
],
...

and the following icon link will be injected into <head>:

<link rel="shortcut icon" href="your-public-path/favicon.e513b5416b8dc82513c174d5ccde5c21.ico">

Options

This plugin only has the default options now.

License

MIT License

Keywords

FAQs

Package last updated on 31 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc