-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
82 lines (81 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
80
81
82
const {
author,
siteTitle,
siteShortTitle,
siteDescription,
siteIcon,
siteUrl,
colors,
} = require(`./config`)
module.exports = {
siteMetadata: {
author: author,
title: siteTitle,
description: siteDescription,
siteUrl: siteUrl,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-robots-txt`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-offline`,
`gatsby-plugin-netlify`,
// {
// resolve: `gatsby-plugin-gtag`,
// options: {
// trackingId: `UA-XXXXXXXX-X`,
// head: false,
// anonymize: true,
// },
// },
{
resolve: `gatsby-plugin-manifest`,
options: {
name: siteTitle,
short_name: siteShortTitle,
start_url: `/`,
background_color: colors.lightTheme.background,
theme_color: colors.lightTheme.primary,
display: `minimal-ui`,
icon: siteIcon, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1000,
quality: 80,
},
},
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content`,
name: `content`,
},
},
{
resolve: `gatsby-plugin-eslint`,
options: {
test: /\.js$|\.jsx$/,
exclude: /(node_modules|.cache|public)/,
stages: [`develop`],
options: {
emitWarning: true,
failOnError: false,
},
},
},
],
}