reactjs - 将快捷方式图标添加到 Gatsby 站点
解决方案
在文件中安装gatsby-plugin-manifest
、添加和配置。gatsby-config.js
按照文档中的说明添加icon
路径:
const config = require('./src/config');
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: './src/images/logo.png',
},
}
],
};
推荐阅读
- python - Ceph 与 Django
- apache-nifi - 使用 RouteOnAttribute 时出现问题(无法读取 json 属性并且总是将流发送到不匹配)
- bash - Shell:间接扩展会导致错误的替代我是 Windows 但不是 Mac
- powershell - Windows 7/PS2.0 New-Object System.Drawing.Text.PrivateFontCollection 不工作,但在 Windows 10 中工作
- python - 是否可以在 python 中为多个类属性定义一个通用的 setter 方法?
- python - BeautifulSoup Webscrape 问题
- python - pandas 基于链式拆分过滤数据帧
- php - laravel 6 没有观看查看子文件夹
- django - 如何从表单验证中排除字段但保存清理后的数据
- php - 如何定义与多个类的 hasMany 关系?