-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgatsby-config.js
75 lines (73 loc) · 1.66 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
const imageSources = ["girls", "tweets", "images"];
const imageSourceFolders = imageSources.map(name => ({
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content/${name}`,
name
}
}));
module.exports = {
siteMetadata: {
title: `Gatsby Typescript Starter`,
description: "New Game! fan site made by the /r/NewGame community",
url: "https://hifumi.io",
},
plugins: [
`gatsby-plugin-extract-schema`,
`gatsby-plugin-react-helmet`,
"gatsby-plugin-sass",
"gatsby-transformer-sharp",
{
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: "UA-133545986-1",
head: false,
anonymize: true,
respectDNT: true
}
},
...imageSourceFolders,
{
resolve:"gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-images",
options: {
withWebp: true,
maxWidth: 500,
quality: 80
}
}
]
}
},
{
resolve: "gatsby-plugin-purgecss",
options: {
printRejected: true,
purgeOnly: ['/bulma.scss']
}
},
{
resolve: "gatsby-source-filesystem",
options: {
path: "./content/tweets/"
}
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "New Game!",
short_name: "New Game!",
start_url: "/",
lang: "en-US",
background_color: "#90adff",
theme_color: "#90adff",
display: "standalone",
icon: "content/images/favicon.jpg",
include_favicon: true
}
}
],
};