I am trying to better organize my gatsby config file, but I"m not sure that I'm doing it right. Does anyone know if the following setup will work:
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/`,
},
}
I got an error saying gatsby_plugin__manifest is not
defined
and I'm wondering if it is because of how I set up the file?