Я пытаюсь лучше организовать свой конфигурационный файл gatsby, но я не уверен, что все делаю правильно. Кто-нибудь знает, будут ли работать следующие настройки:
module.exports = {
plugins: [
{ gatsby_plugin__manifest },
{ gatsby_source__file_system__images },
{ gatsby_source__file_system__posts },
],
};
const gatsby_plugin__manifest = {
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
}
const gatsby_source__file_system__images = {
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
}
const gatsby_source__file_system__posts = {
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/src/posts/`,
},
}
Я получил сообщение об ошибке gatsby_plugin__manifest is not
defined
, и мне интересно, из-за того, как я настроил файл?