所以我尝试在我的gatsby-config.js文件中添加gatsby-plugin-favicon

时间:2019-08-13 07:21:35

标签: webpack gatsby

首先,我在gatsby-config.js文件中添加gatsby-plugin-favicon 以下代码:

<VDSP_INPUT_A_Set>
    <VDSP_INPUT_A_Record>
        <head>
            <blanket_number>CMC741311</blanket_number>
        </head>
        <head>
            <blanket_number>specific_test</blanket_number>
        </head>
    </VDSP_INPUT_A_Record>
</VDSP_INPUT_A_Set>

添加gatsby-plugin-favicon后,我得到了这样的错误

module.exports = {
  siteMetadata: {
    title: 'Chatbiz Blog',
  },
  plugins: [
    'gatsby-plugin-react-helmet',
    'gatsby-plugin-catch-links',
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        path: `${__dirname}/src/pages`,
        name: 'pages',
      },
    },
    'gatsby-transformer-remark',
    {
      resolve: 'gatsby-plugin-favicon',
      options: {
        logo: "./src/images/icon.png",
        icons: {
          android: true,
          appleIcon: true,
          appleStartup: true,
          coast: false,
          favicons: true,
          firefox: true,
          twitter: false,
          yandex: false,
          windows: false
        }
      }
    }
  ],
}

那问题我该如何解决呢?

1 个答案:

答案 0 :(得分:0)

转到 gatsby-config.js 文件并删除下面提到的依赖项

10X10  or 23X24  or 36X24 or 44X56