text: require('dotenv').config({
    path: `.env`,
  });
  
  module.exports = {
    plugins: [
      {
        resolve:
          'gatsby-plugin-webpack-bundle-analyser-v2',
        options: {
          analyzerMode: `${
            process.env.GATSBY_CLOUD
              ? 'static'
              : 'server'
          }`,
          openAnalyzer: `${
            process.env.GATSBY_CLOUD
              ? false
              : true
          }`,
        },
      },
      {
        resolve: 'gatsby-plugin-eslint',
        options: {
          test: /\.js$|\.jsx$/,
          exclude: /(node_modules|.cache|public)/,
          stages: ['develop'],
          options: {
            emitWarning: true,
            failOnError: false,
          },
        },
      },
      `gatsby-plugin-sharp`,
      `gatsby-transformer-sharp`,
      `gatsby-plugin-react-helmet`,
      `gatsby-plugin-offline`,
      {
        resolve: `gatsby-plugin-manifest`,
        options: {
          name: 'scratch-project',
          short_name: 'scratch',
          start_url: '/',
          background_color: '#ffffff',
          theme_color: '#663399',
          display: 'minimal-ui',
        },
      },
      {
        resolve: `gatsby-source-filesystem`,
        options: {
          name: `src`,
          path: `${__dirname}/src/`,
          ignore: [`**/.*`],
        },
      },
    ],
  };
  