Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将第二个主题安装到您想要的主题上';你已经安装了吗?相关资源链接的问题_Javascript_Gatsby_Gatsby Image_Gatsby Plugin_Gatsby Plugin Feed - Fatal编程技术网

Javascript 如何将第二个主题安装到您想要的主题上';你已经安装了吗?相关资源链接的问题

Javascript 如何将第二个主题安装到您想要的主题上';你已经安装了吗?相关资源链接的问题,javascript,gatsby,gatsby-image,gatsby-plugin,gatsby-plugin-feed,Javascript,Gatsby,Gatsby Image,Gatsby Plugin,Gatsby Plugin Feed,我刚刚尝试在当前的盖茨比安装中安装第二个主题,遵循多主题教程中概述的步骤。我在链接新主题的资源时遇到了一些问题。因为它位于node_模块中,所以我猜这就是它应该引用的地方。目前,它似乎试图为第一个主题引用主src目录 不知道我到底做错了什么。以下是我的盖茨比配置的副本,供参考,特别是插件部分: plugins: [ { resolve: `gatsby-plugin-manifest`, options: { name: `gatsby-mythe

我刚刚尝试在当前的盖茨比安装中安装第二个主题,遵循多主题教程中概述的步骤。我在链接新主题的资源时遇到了一些问题。因为它位于node_模块中,所以我猜这就是它应该引用的地方。目前,它似乎试图为第一个主题引用主src目录

不知道我到底做错了什么。以下是我的盖茨比配置的副本,供参考,特别是插件部分:

plugins: [
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: `gatsby-mytheme-tailwind`,
        short_name: `mytheme-main`,
        start_url: `/`,
        background_color: fullConfig.theme.colors.white,
        theme_color: fullConfig.theme.colors.blue["400"],
        display: `minimal-ui`,
        icon: `src/images/MyTheme-Icon.png`,
      },
    },
    //Custom Themes
    {
      resolve: `gatsby-tailwind-simplicity-theme`,
      options: {
        basePath: `/simplicity-itself`,
      },
    },
    //Rest of the plugins
    `gatsby-plugin-eslint`,
    `gatsby-plugin-react-helmet`,
    `gatsby-plugin-root-import`,
    {
      resolve: `gatsby-plugin-postcss`,
      options: {
        postCssPlugins: [
          require(`tailwindcss`)(tailwindConfig),
          require(`autoprefixer`),
          ...(process.env.NODE_ENV === `production`
            ? [require(`cssnano`)]
            : []),
        ],
      },
    },
    `gatsby-plugin-offline`,
  ]