This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
/
gatsby-config.js
102 lines (102 loc) · 2.46 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
module.exports = {
siteMetadata: {
title: `React Flow - Open Source Library`,
siteUrl: `https://reactflow.dev`,
description:
'React Flow is a highly customizable library for building interactive node-based editors, flow charts and diagrams.',
},
plugins: [
'gatsby-plugin-image',
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'pages',
path: `${__dirname}/src/pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'exampleflows',
path: `${__dirname}/src/example-flows`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/markdown`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/assets`,
ignore: [`**/.*`], // ignore files starting with a dot
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: `src/assets/images/react-flow-logo.svg`,
name: `React Flow`,
short_name: `react-flow`,
start_url: `/`,
background_color: `#f7f0eb`,
theme_color: `#1A192B`,
display: `standalone`,
lang: 'en',
},
},
`gatsby-plugin-sharp`,
`gatsby-remark-images`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
linkImagesToOriginal: false,
},
},
],
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
showCaptions: true,
quality: 85,
backgroundColor: 'white',
linkImagesToOriginal: false,
},
},
'gatsby-remark-copy-linked-files',
],
remarkPlugins: [require('remark-unwrap-images')],
extensions: [`.md`, `.mdx`],
},
},
`gatsby-transformer-json`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-emotion`,
{
resolve: `gatsby-plugin-react-svg`,
options: {
rule: {
include: /icons/,
},
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-netlify`,
`gatsby-transformer-javascript-frontmatter`,
],
};