-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
50 lines (49 loc) · 1.29 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
if (process.env !== 'production') {
require('dotenv').config({
path: `./.env`
});
}
module.exports = {
siteMetadata: {
title: `Gatsby starter Wordpress + Tailwindcss`,
description: `Starter kit for gatsby, wordpress and tailwindcss`
},
plugins: [
{
resolve: `gatsby-source-wordpress`,
options: {
baseUrl: process.env.WORDPRESS_BASE_URL,
protocol: process.env.WORDPRESS_PROTOCOL,
hostingWPCOM: process.env.WORDPRESS_WPCOM === 'true',
useACF: process.env.WORDPRESS_ACF === 'true',
verboseOutput: process.env.WORDPRESS_VERBOSE_OUTPUT === 'true',
searchAndReplaceContentUrls: {
sourceUrl: process.env.WORDPRESS_SOURCE_URL,
replacementUrl:
process.env.WORDPRESS_REPLACE_URL || `http://localhost:8000`
}
}
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `./config/typography.js`
}
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
tailwind: true,
whitelist: [],
whitelistPatternsChildren: [
/post-body$/,
/more-link$/,
/screen-reader-text$/
]
}
},
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`
]
};