-
Notifications
You must be signed in to change notification settings - Fork 43
/
gatsby-config.js
41 lines (40 loc) · 1.14 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const config = require("./data/siteConfig");
module.exports = {
siteMetadata: {
title: config.siteTitle,
description: config.siteDescription,
author: config.authorName,
...config
},
pathPrefix: config.pathPrefix,
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.siteTitle,
short_name: config.siteTitle,
start_url: config.pathPrefix,
background_color: config.background_color,
theme_color: config.theme_color,
display: config.display,
icon: config.icon,
},
},
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
config.googleAnalyticsId // Google Analytics / GA
],
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
],
}