-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgatsby-config.js
executable file
·62 lines (61 loc) · 1.39 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
const path = require(`path`)
const config = require(`./config`)
module.exports = {
siteMetadata: {
title: config.title,
description: config.description,
author: config.author,
twitter: config.twitter,
siteUrl: config.siteUrl,
},
plugins: [
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [require("tailwindcss")],
},
},
{
resolve: `gatsby-source-graphql`,
options: {
// This type will contain remote schema Query type
typeName: `WPGraphQL`,
// This is field under which it's accessible
fieldName: `wpgraphql`,
// Url to query from
url: config.wordPressUrl + `/graphql`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: config.gaTrackingId,
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`),
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sass`,
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: ["Merriweather", "Lato"],
},
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint: config.mailChimpEndpoint,
},
},
],
}