This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
90 lines (88 loc) · 2.04 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
const autoprefixer = require('autoprefixer');
module.exports = {
siteMetadata: {
title: 'David James',
subtitle: 'Front End Developer'
},
plugins: [
{
resolve: 'gatsby-source-wordpress',
options: {
baseUrl: 'dfjames.press',
protocol: 'https',
hostingWPCOM: false,
useACF: true,
acfOptionPageIds: [],
auth: {
},
verboseOutput: false,
perPage: 100,
concurrentRequests: 10,
excludedRoutes: ['/*/*/comments', '/yoast/**'],
normalizer: function ({ entities }) {
return entities;
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'David James - Front End Developer',
short_name: 'David James',
start_url: '/',
background_color: '#111111',
theme_color: '#111111',
display: 'minimal-ui',
},
},
'gatsby-plugin-offline',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-favicon',
options: {
logo: './src/images/favicon.png',
injectHTML: true,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: false,
windows: false
},
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: 'GTM-NDXSQ5N',
includeInDevelopment: false,
},
},
{
resolve: 'gatsby-plugin-nprogress',
options: {
// Setting a color is optional.
color: 'tomato',
// Disable the loading spinner.
showSpinner: true,
},
},
{
// Does both SASS
resolve: 'gatsby-plugin-sass',
options: {
postCssPlugins: [autoprefixer({ browsers: ["> 1%", "last 2 versions"] })],
}
},
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: 'src/utils/typography',
},
}
]
};