react-static-plugin-favicons
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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:

export default {
  plugins: [
    [
      'react-static-plugin-favicons',
      { inputFile: path.resolve(__dirname, 'icon.svg') },
    ],
  ]
};

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

Package Sidebar

Install

npm i react-static-plugin-favicons

Weekly Downloads

9

Version

2.0.0

License

MIT

Unpacked Size

22.9 kB

Total Files

13

Last publish

Collaborators

  • vincenttunru