-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
129 lines (128 loc) · 2.99 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
require("dotenv").config()
module.exports = {
siteMetadata: {
title: `Pav Sidhu`,
description: `I’m a developer from the UK. I like progressive web apps, neural networks and designing user experiences.`,
author: `Pav Sidhu <pav@pavsidhu.com>`,
siteUrl: `https://pavsidhu.com`
},
plugins: [
`gatsby-plugin-preact`,
`gatsby-plugin-typescript`,
"gatsby-plugin-linaria",
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-remark-images`,
`gatsby-plugin-netlify-cms`,
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/Layout.tsx`)
}
},
{
resolve: `gatsby-plugin-svgr`,
options: {
svgo: false
}
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `#f05f40`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blogPosts`,
path: `${__dirname}/content/blog`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blogPostImages`,
path: `${__dirname}/content/images/`
}
},
{
resolve: `gatsby-plugin-mdx`,
options: {
plugins: [
`gatsby-remark-images`,
{
resolve: `gatsby-remark-images-medium-zoom`,
options: {
background: "rgba(0,0,0,0.8)"
}
}
],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
quality: 80,
withWebp: true,
linkImagesToOriginal: false
}
},
{
resolve: `gatsby-remark-images-medium-zoom`,
options: {
background: "rgba(0,0,0,0.8)"
}
},
{
resolve: "gatsby-remark-external-links",
options: {
rel: "noopener"
}
}
]
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Pav Sidhu`,
short_name: `Pav Sidhu`,
start_url: `/`,
background_color: `#fefefe`,
theme_color: `#fefefe`,
display: `standalone`,
cache_busting_mode: "none",
icon: "src/images/icon.png",
icon_options: {
purpose: "maskable any"
},
include_favicon: false
}
},
{
resolve: "gatsby-plugin-offline",
options: {
precachePages: ["/", "/about", "/blog/*", "/projects", "/contact"],
workboxConfig: {
globPatterns: ["icons/*"],
globIgnores: ["admin/*"]
}
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-41576939-2"
}
}
]
}