-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
79 lines (77 loc) · 1.79 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
const { deployment, contentPath, pages } = require('./config/site')
const { getYamlTypename } = require('./gatsby/types')
const { title } = require('./src/constants/site')
module.exports = {
siteMetadata: {
deployment,
siteUrl: deployment.config.url, // for gatsby-plugin-sitemap
},
plugins: [
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: contentPath,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
gatsbyRemarkPlugins: [
'gatsby-remark-smartypants',
],
},
},
{
resolve: 'gatsby-plugin-advanced-pages',
options: { pages },
},
{
resolve: 'gatsby-transformer-yaml',
options: { typeName: getYamlTypename },
},
'gatsby-plugin-image',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-sharp',
options: {
defaults: {
transformOptions: {
cropFocus: 'center',
},
quality: 90,
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: title,
short_name: title,
start_url: '/',
background_color: '#234e52',
theme_color: '#b28e59',
display: 'standalone',
icon: 'src/images/avatar/avatar.png',
legacy: false,
},
},
{
resolve: 'gatsby-plugin-postcss',
options: {
postcssOptions: require('./config/postcss'),
},
},
'gatsby-plugin-react-helmet-async',
'gatsby-plugin-sitemap',
'gatsby-plugin-preload-fonts',
{
resolve: 'gatsby-plugin-postbuild',
options: require('./config/postbuild'),
},
],
}
// dev-only plugins
if (deployment.is.local) {
module.exports.plugins.push('gatsby-plugin-graphql-config')
}