-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
102 lines (96 loc) · 3.1 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: `Gatsbygram`,
},
plugins: [
/*
* Gatsby's data processing layer begins with “source”
* plugins. You can source data nodes from anywhere but
* most sites, like Gatsbygram, will include data from
* the filesystem so we start here with
* “gatsby-source-filesystem”.
*
* A site can have as many instances of
* gatsby-source-filesystem as you need. Each plugin
* instance is configured with a root path where it then
* recursively reads in files and adds them to the data
* tree.
*/
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/data`,
},
},
`gatsby-parser-remark`,
// This plugin exposes helper functions for processing
// images with the NPM package “sharp”. It's used by
// several other plugins.
`gatsby-plugin-sharp`,
// This plugin identifies file nodes that are images and
// extends these to create new “ImageSharp” nodes.
`gatsby-parser-sharp`,
// This plugin parses JSON file nodes.
`gatsby-parser-json`,
// This plugin parses Markdown file nodes.
`gatsby-typegen-filesystem`,
{
resolve: `gatsby-typegen-remark`,
options: {
plugins: [
{
resolve: `gatsby-typegen-remark-responsive-image`,
options: {
maxWidth: 200,
},
},
// {
// resolve: `gatsby-typegen-remark-responsive-iframe`,
// options: {
// wrapperStyle: `margin-bottom: 1.0725rem`,
// },
// },
'gatsby-typegen-remark-prismjs',
// 'gatsby-typegen-remark-copy-linked-files',
// 'gatsby-typegen-remark-smartypants',
],
},
},
// This plugin adds GraphQL fields to the ImageSharp
// GraphQL type. With them you can resize images and
// generate sets of responsive images.
`gatsby-typegen-sharp`,
// This plugin sets up the popular css-in-js library
// Glamor. It handles adding a Babel plugin and webpack
// configuration as well as setting up optimized server
// rendering and client re-hydration.
`gatsby-plugin-glamor`,
// This plugin takes your configuration and generates a
// web manifest file so Gatsbygram can be added to your
// homescreen on Android.
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsbygram`,
short_name: `Gatsbygram`,
start_url: `/`,
background_color: `#f7f7f7`,
theme_color: `#191919`,
display: `minimal-ui`,
},
},
// This plugin generates a service worker and AppShell
// html file so the site works offline and is otherwise
// resistant to bad networks. Works with almost any
// site!
`gatsby-plugin-offline`,
// This plugin sets up Google Analytics for you.
// {
// resolve: `gatsby-plugin-google-analytics`,
// options: {
// trackingId: ``,
// },
// },
],
}