-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
110 lines (108 loc) · 2.71 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = {
siteMetadata: {
title: 'Timeline of Terror',
author: 'Alex Shaw',
description: 'A complete guide to all the events of 9/11',
repo: 'Symbitic/timeline-of-terror',
siteUrl: 'https://timelineofterror.org'
},
plugins: [
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/pages`,
name: 'blog'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/timelines`,
name: 'timelines'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/assets`,
name: 'assets'
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-attr',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 590
}
},
'gatsby-remark-autolink-headers',
'gatsby-remark-prismjs',
'gatsby-remark-copy-linked-files',
'gatsby-remark-external-links',
'gatsby-remark-smartypants'
]
}
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-141262938-1'
}
},
'gatsby-plugin-netlify',
'gatsby-plugin-netlify-cache',
'gatsby-plugin-react-helmet',
/*
{
resolve: 'gatsby-plugin-prefetch-google-fonts',
options: {
fonts: [
{
family: 'Roboto',
variants: [ '100', '100i', '300', '300i', '400', '400i', '500', '500i', '700', '700i', '900', '900i' ],
},
{
family: 'Open Sans',
variants: [ '300', '300i', '400', '400i', '600', '600i', '700', '700i', '800', '800i' ]
}
]
}
},
*/
'gatsby-plugin-nprogress',
'gatsby-plugin-fastclick',
'gatsby-plugin-postcss',
'gatsby-plugin-purgecss',
// 'gatsby-plugin-polyfill-io',
// 'gatsby-plugin-brotli',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'The Terror Timeline',
short_name: 'terror',
start_url: '/',
background_color: '#ffffff',
theme_color: '#ffffff',
display: 'standalone',
icon: 'assets/favicon.png',
crossOrigin: 'use-credentials'
}
},
...process.env.NETLIFY_BUILD_BASE ? [
{
resolve: 'gatsby-plugin-react-helmet-canonical-urls',
options: {
siteUrl: 'https://timelineofterror.org'
}
},
'gatsby-plugin-offline'
] : [ 'gatsby-plugin-remove-serviceworker' ]
]
}