This repository has been archived by the owner on Jan 9, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
gatsby-config.js
70 lines (69 loc) · 1.74 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
const urljoin = require("url-join");
const config = require("./data/site-config");
module.exports = {
pathPrefix: config.pathPrefix,
siteMetadata: {
siteUrl: urljoin(config.siteUrl, config.pathPrefix),
title: config.siteTitle,
description: config.siteDescription,
author: config.author.name,
lang: config.lang,
social: {
twitter: config.author.twitter
}
},
plugins: [
"gatsby-plugin-eslint",
`gatsby-plugin-react-helmet`,
"gatsby-plugin-sitemap",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.siteTitle,
short_name: config.siteTitleShort,
start_url: config.pathPrefix,
background_color: config.backgroundColor,
theme_color: config.themeColor,
lang: config.lang,
display: config.display,
icon: config.siteLogo
}
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint:
"https://protonmail.us19.list-manage.com/subscribe/post?u=eeebc60676240ae979f0da259&id=cdde32891c"
}
},
{
resolve: "gatsby-plugin-postcss",
options: {
postCssPlugins: [
require(`tailwindcss`)(`./tailwind.config.js`),
require(`autoprefixer`),
require(`cssnano`)
]
}
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
tailwind: true,
purgeOnly: [`src/css/style.css`],
whitelist: [
`hover:bg-red-600`,
`focus:bg-red-600`,
`bg-red-700`,
`bg-red-800`,
`hover:bg-green-600`,
`focus:bg-green-600`,
`bg-green-700`,
`bg-green-800`,
`mode-dark`
]
}
},
`gatsby-plugin-offline`
]
};