text: const config = require('./config/website')
  
  const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix
  
  module.exports = {
    pathPrefix: config.pathPrefix,
    siteMetadata: {
      siteUrl: config.siteUrl + pathPrefix
    },
    plugins: [
      'gatsby-plugin-react-helmet',
      {
        resolve: 'gatsby-plugin-emotion',
        options: {
          autoLabel: process.env.NODE_ENV !== 'production',
          labelFormat: '[filename]--[local]'
        }
      },
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          name: 'projects',
          path: `${__dirname}/content/projects`
        }
      },
      {
        resolve: 'gatsby-source-filesystem',
        options: {
          name: 'images',
          path: `${__dirname}/src/images`
        }
      },
      {
        resolve: 'gatsby-transformer-remark',
        options: {
          plugins: [
            {
              resolve: 'gatsby-remark-images',
              options: {
                maxWidth: 820,
                quality: 90,
                linkImagesToOriginal: false
              }
            },
            {
              resolve: 'gatsby-remark-external-links',
              options: {
                target: '_blank',
                rel: 'nofollow noopener noreferrer'
              }
            },
            {
              resolve: 'gatsby-remark-responsive-iframe'
            }
          ]
        }
      },
      {
        resolve: 'gatsby-plugin-google-analytics',
        options: {
          trackingId: config.googleAnalyticsID
        }
      },
      {
        resolve: 'gatsby-plugin-nprogress',
        options: {
          color: config.themeColor
        }
      },
      'gatsby-plugin-sharp',
      'gatsby-transformer-sharp',
      'gatsby-plugin-lodash',
      {
        resolve: 'gatsby-plugin-typography',
        options: {
          pathToConfigModule: 'src/utils/typography.jsx'
        }
      },
      'gatsby-plugin-catch-links',
      'gatsby-plugin-sitemap',
      {
        resolve: 'gatsby-plugin-manifest',
        options: {
          name: config.siteTitle,
          short_name: config.siteTitleAlt,
          description: config.siteDescription,
          start_url: config.pathPrefix,
          background_color: config.backgroundColor,
          theme_color: config.themeColor,
          display: 'standalone',
          icon: 'src/favicon.png'
        }
      },
      // 'gatsby-plugin-offline',
      'gatsby-plugin-netlify'
    ]
  }
  