react-static-plugin-favicons
A plugin for React Static that uses the favicons module to generate favicons in many different sizes for many different platforms, given a source icon.
Installation
npm install react-static-plugin-favicons --save-dev
Usage
Add the plugin to your static.config.js
, passing the path to your soure icon as an option:
plugins: 'react-static-plugin-favicons' inputFile: path ;
Options
Options can be passed by using an array.
inputFile: string
Required.
Path to the icon that is to be your favicon.
outputDir: string
Default value: config.paths.assets
Folder in which to output the generated icons. Defaults to the same directory as the one used for bundled JS and CSS.
configuration: object
Default value: {}
Options to be passed to the favicons module. For a list of all possible configuration options, see https://www.npmjs.com/package/favicons#nodejs.
Changelog
See CHANGELOG.md
.
License
MIT © Vincent Tunru