-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathgatsby-config.mjs
More file actions
150 lines (149 loc) Β· 3.4 KB
/
Copy pathgatsby-config.mjs
File metadata and controls
150 lines (149 loc) Β· 3.4 KB
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
141
142
143
144
145
146
147
148
149
150
import postcssGlobalData from '@csstools/postcss-global-data';
import remarkGFM from 'remark-gfm';
export default {
siteMetadata: {
siteUrl: 'https://thecodingtrain.com',
title: 'The Coding Train',
description:
'All aboard the Coding Train with Daniel Shiffman, a YouTube channel dedicated to beginner-friendly creative coding tutorials and challenges.'
},
trailingSlash: 'never',
plugins: [
{
resolve: 'gatsby-plugin-postcss',
options: {
cssLoaderOptions: {
localIdentName: '[name]-[local]-[hash:base64:3]'
},
postCssPlugins: [
'postcss-import',
'postcss-normalize',
postcssGlobalData({ files: ['./src/styles/variables.css'] }),
'postcss-nesting',
'postcss-custom-properties',
'postcss-calc',
'postcss-custom-media'
]
}
},
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-transformer-json',
options: {
typeName: 'Json'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'videos',
path: './content/videos',
ignore: ['./**/videos/challenges/**/*']
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'challenges',
path: './content/videos/challenges'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'main-tracks',
path: './content/tracks/main-tracks'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'side-tracks',
path: './content/tracks/side-tracks'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'tracks-order',
path: './content/tracks/index.json'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'guides',
path: './content/pages/guides'
}
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
mdxOptions: {
remarkPlugins: [remarkGFM]
}
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'homepage-data',
path: './content/pages/homepage'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'tracks-page-data',
path: './content/pages/tracks'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'challenges-page-data',
path: './content/pages/challenges'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'showcase-page-data',
path: './content/pages/showcase'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'faqs',
path: './content/pages/faqs'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'about-page-data',
path: './content/pages/about'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: '404-page-data',
path: './content/pages/404'
}
},
'gatsby-plugin-netlify'
]
};