-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
143 lines (140 loc) · 4.07 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
141
142
143
/**
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
"use strict"
const { author } = require("./config.js")
const siteConfig = require("./config.js")
module.exports = {
// @see https://www.gatsbyjs.org/docs/path-prefix/
pathPrefix: siteConfig.pathPrefix,
siteMetadata: {
url: siteConfig.url,
title: siteConfig.title,
description: siteConfig.description,
subtitle: siteConfig.subtitle,
icon: siteConfig.iconImage,
copyright: siteConfig.copyright,
disqusShortname: siteConfig.disqusShortname,
author: siteConfig.author,
website: siteConfig.website,
sourceCode: siteConfig.sourceCode,
twitterUsername: siteConfig.social.twitter,
},
plugins: [
{
resolve: `gatsby-plugin-sass`,
options: {
cssLoaderOptions: {
esModule: false,
modules: {
namedExport: false,
},
},
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/static/fonts`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/static/images`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
// https://www.gatsbyjs.org/packages/gatsby-remark-external-links
resolve: "gatsby-remark-external-links",
options: {
target: "_blank",
rel: "nofollow noopener noreferrer",
},
},
{
// https://www.gatsbyjs.org/packages/gatsby-remark-images
resolve: "gatsby-remark-images",
options: {
maxWidth: 900,
linkImagesToOriginal: true,
backgroundColor: `transparent`,
quality: 99,
tracedSVG: { color: "#707070" },
},
},
{
resolve: "gatsby-remark-responsive-iframe",
options: { wrapperStyle: "margin-bottom: 1.0725rem" },
},
"gatsby-remark-autolink-headers",
/** Note: if you are using gatsby-remark-prismjs, make sure that it’s listed after this plugin.
* Otherwise, you might face an issue described here: https://github.com/gatsbyjs/gatsby/issues/5764. */
{
resolve: `gatsby-remark-prismjs`,
options: {
aliases: { sh: "bash", js: "javascript" },
showLineNumbers: false,
noInlineHighlight: true,
},
},
"gatsby-remark-copy-linked-files",
"gatsby-remark-smartypants",
],
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: siteConfig.title,
short_name: siteConfig.title,
lang: "en",
start_url: "/",
background_color: "#1C1D20",
theme_color: "#1C1D20",
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: "standalone",
icon: siteConfig.favicon,
},
},
// The offline plugin should be listed after the manifest plugin
// so that the offline plugin can cache the created manifest.webmanifest.
`gatsby-plugin-offline`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-optimize-svgs`,
`gatsby-plugin-dark-mode`,
`gatsby-plugin-netlify`,
`gatsby-link`,
`gatsby-react-router-scroll`,
{
resolve: `gatsby-plugin-gtag`,
options: {
// your google analytics tracking id
trackingId: siteConfig.googleAnalyticsId,
// Puts tracking script in the head instead of the body
head: false,
// enable ip anonymization
anonymize: true,
},
},
{
resolve: "gatsby-plugin-load-script",
options: {
src: "https://snack.expo.dev/embed.js",
},
},
],
}