A Rollup plugin for generating favicons and associated files from a source image, using the favicons generator. Version 0.5.0 is the latest stable release. It supports caching, custom output via callback, and integrates with rollup-plugin-html2 for automatic injection of link tags. Compared to other solutions, it leverages Rollup's asset emission and is designed for modern build pipelines. Peer dependencies: rollup >=1.25 and rollup-plugin-html2 >=0.7.
npm install rollup-plugin-faviconsVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of rollup-plugin-favicons with rollup-plugin-html2, generating favicons from a source SVG with custom configuration and caching.
Rename appDescription to description in the configuration object passed to the plugin.
Ensure favicons plugin is listed before html2 in the plugins array.
Update usage: remove extra function call (e.g., favicons() becomes favicons).
Set an output.dir in your Rollup configuration (e.g., output: { dir: 'dist' }).npm install -D rollup-plugin-html2
Change to 'import favicons from 'rollup-plugin-favicons''
Provide a correct absolute or relative path to the source image. Use path.resolve(__dirname, 'src/icon.svg') if needed.