Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
favicon-hash-webpack-plugin
Advanced tools
Readme
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.
- 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
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
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">
This plugin only has the default options now.
FAQs
an extension to add favicon hash for the html-webpack-plugin
The npm package favicon-hash-webpack-plugin receives a total of 155 weekly downloads. As such, favicon-hash-webpack-plugin popularity was classified as not popular.
We found that favicon-hash-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.