-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
94 lines (94 loc) · 3.08 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
module.exports = {
siteMetadata: {
title: `Gatsby WPGraphQL Source Demo`,
description: `Gatsby demo site with WPGraphQL as the source.`,
author: `@wpgraphql`,
wordPressUrl: `https://wpgraphqldemo.wpengine.com`,
},
plugins: [
// Include Ant Design component library.
{
resolve: `gatsby-plugin-antd`,
options: {
style: true,
},
},
{
resolve: `gatsby-plugin-less`,
options: {
javascriptEnabled: true,
modifyVars: {
// DEFAULTS FOR ANT DESIGN
// Full list of variables can be found here:
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
// @primary-color: #1890ff;
"layout-header-background": `#0e2339`,
// primary color for all components
"primary-color": `#1890ff`,
// @link-color: #1890ff;
"link-color": `#1890ff`,
// @success-color: #52c41a;
"success-color": `#52c41a`,
// @warning-color: #faad14;
"warning-color": `#faad14`,
// @error-color: #f5222d;
"error-color": `#f5222d`,
// @font-size-base: 14px;
// major text font size
"font-size-base": `16px`,
// @heading-color: rgba(0, 0, 0, .85);
"heading-color": `rgba(0, 0, 0, .85)`,
// @text-color: rgba(0, 0, 0, .65);
"text-color": `rgba(0, 0, 0, .65)`,
// @text-color-secondary : rgba(0, 0, 0, .45);
"text-color-secondary": `rgba(0, 0, 0, .45)`,
// @disabled-color : rgba(0, 0, 0, .25);
"disabled-color": `rgba(0, 0, 0, .25)`,
// @border-radius-base: 4px;
"border-radius-base": `4px`,
// @border-color-base: #d9d9d9;
"border-color-base": `#d9d9d9`,
// @box-shadow-base: 0 2px 8px rgba(0, 0, 0, .15);
"box-shadow-base": `0 2px 8px rgba(0, 0, 0, .15)`,
},
},
},
// Setup WPGraphQL.com to be the source
{
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: process.env.SHIFTER_APP_URL + `/graphql/`,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-wpgraphql-starter`,
short_name: `starter`,
start_url: `/`,
background_color: `#f0f2f5`,
theme_color: `#001529`,
display: `minimal-ui`,
icon: `src/images/wpgraphql-logo.png`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
`gatsby-plugin-offline`,
],
}