-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
88 lines (87 loc) · 2.31 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
require('dotenv').config()
module.exports = {
siteMetadata: {
title: 'Anant Platform Playbook',
description: 'Principles and playbook for building and scaling and a business platform.'
},
plugins: [
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: process.env.GTM_ID,
includeInDevelopment: false,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Anant Platform Playbook`,
short_name: `Playbook`,
start_url: `/`,
/*background_color: `#f7f0eb`,
theme_color: `#a2466c`,*/
display: `standalone`,
icon: `src/assets/icons/favicon.png`,
},
},
{
resolve: `gatsby-plugin-sharp`,
options: {
// Available options and their defaults:
base64Width: 20,
forceBase64Format: `png`, // valid formats: png,jpg,webp
useMozJpeg: process.env.GATSBY_JPEG_ENCODER === `MOZJPEG`,
stripMetadata: true,
defaultQuality: 50,
failOnError: true,
},
},
{
resolve: 'gatsby-theme-apollo-core',
options: {
root: __dirname
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/content`,
name: 'content'
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
excerpt_separator: '<!-- end -->',
plugins: [
'gatsby-remark-autolink-headers',
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
ignoreFileExtensions: []
}
}
]
}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
process.env.GA_TRACKING_ID
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
// optimize_id: "OPT_CONTAINER_ID",
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: true,
},
},
}
]
};