-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
131 lines (127 loc) · 3.12 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
require('dotenv').config({
path: `.env`,
});
module.exports = {
siteMetadata: {
title: 'Ashley Hitchcock',
description:
'Slinger of <Divs />, Slayer of JavaScript, hater of !important, survivor of IE6; Front-end developer',
author: '@ash_hitchcock',
},
trailingSlash: 'never',
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/snips`,
name: 'snip',
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Ash Hitchcock',
short_name: 'Ash',
start_url: '/',
background_color: '#bada55',
theme_color: '#bada55',
display: 'minimal-ui',
icon: 'src/images/icon.svg', // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
cookieName: 'gatsby-gdpr-google-analytics', // default
anonymize: true, // default
},
// defines the environments where the tracking should be available - default is ["production"]
environments: ['production', 'development'],
},
},
{
resolve: 'gatsby-plugin-styled-components',
options: {
displayName: true,
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /icons/,
},
},
},
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google: [
{
family: `Share Tech Mono`,
variants: [`300`, `400`, `700`],
},
],
},
},
},
// {
// resolve: 'gatsby-plugin-prettier-build',
// options: {
// types: ['html'],
// concurrency: 20,
// verbose: true,
// },
// },
{
resolve: 'gatsby-source-instagram',
options: {
username: 'frontendsnips',
access_token: process.env.INSTAGRAM_TOKEN,
instagram_id: process.env.INSTAGRAM_ID,
paginate: 10,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
root: __dirname,
remarkPlugins: [[require('gatsby-remark-vscode').remarkPlugin, {}]],
gatsbyRemarkPlugins: [
`gatsby-remark-copy-linked-files`,
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
linkImagesToOriginal: false,
withWebp: true,
},
},
],
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/layout.tsx`),
},
},
'gatsby-plugin-use-dark-mode',
'gatsby-plugin-typescript',
'gatsby-plugin-catch-links',
'gatsby-plugin-netlify',
],
};