-
Notifications
You must be signed in to change notification settings - Fork 73
/
gatsby-config.js
140 lines (139 loc) · 3.7 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
module.exports = {
siteMetadata: {
title: 'Spark Design System',
description:
'Spark Design System is a system of patterns and components ' +
'used to create the user interface for the Rocket Mortgage family of ' +
'Fintech products.',
author: '@SparkDesignSys',
},
plugins: [
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/spark-logo.svg',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/homepage',
name: 'homepage-pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/data/',
name: 'data',
},
},
{
resolve: 'gatsby-transformer-json',
options: {
path: 'src/data/',
name: 'data',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/installing-spark',
name: 'installing-spark-pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/installing-spark.mdx',
name: 'installing-spark-page',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/principles',
name: 'principles-pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/using-spark/guides.mdx',
name: 'guides',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/using-spark',
name: 'using-spark-pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: 'src/pages/using-spark.mdx',
name: 'using-spark-page',
},
},
'gatsby-plugin-sass',
{
resolve: 'gatsby-symbol-set-fetch',
options: {
url:
'https://www.rockomni.com/mcds/assets/GlobalContent/NonStockImages/Icons/spark-icons-v14.svg',
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
'homepage-pages': require.resolve(
'./src/components/layouts/HomepageLayout.js',
),
'installing-spark-pages': require.resolve(
'./src/components/layouts/InstallingSparkLayout.js',
),
'installing-spark-page': require.resolve(
'./src/components/layouts/InstallingSparkLayout.js',
),
guides: require.resolve(
'./src/components/layouts/UsingSparkLayout.js',
),
'using-spark-pages': require.resolve(
'./src/components/layouts/UsingSparkLayout.js',
),
'using-spark-page': require.resolve(
'./src/components/layouts/UsingSparkLayout.js',
),
'principles-pages': require.resolve(
'./src/components/layouts/PrinciplesLayout.js',
),
default: require.resolve('./src/components/layouts/Layout.js'),
},
},
},
{
resolve: 'gatsby-plugin-postcss',
options: {
// eslint-disable-next-line global-require
postCssPlugins: [require('postcss-preset-env')({ stage: 0 })],
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'UA-113915182-1',
// Defines where to place the tracking script - `true`
// in the head and `false` in the body
head: false,
// Setting this parameter is also optional
respectDNT: true,
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
},
},
],
};