gatsby-plugin-favicon
Generates all favicons for Web, Android, iOS, ...
Install
yarn add gatsby-plugin-favicon
How to use
- Include the plugin in your
gatsby-config.js
file. - Add a
favicon.png
file in yoursrc
folder. The recommended size for the file is: 1500x1500px.
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/favicon.png",
injectHTML: true,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: false,
windows: false
}
}
}
];