-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
120 lines (118 loc) · 3 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
const title = 'Hoverkraft';
const hostname = 'hoverkraft.cloud';
const siteUrl = `https://${hostname}`;
module.exports = {
pathPrefix: '/',
siteMetadata: {
title,
description: 'Frictionless DevOps cloud platform as a service',
author: '@hoverkraft',
contactFormUrl:
'https://send.pageclip.co/zSPWTmFycyOKcVDIW2vvZKAbkjQqZ9o8/contact-form',
subscribeFormUrl:
'https://hoverkraft.us2.list-manage.com/subscribe/post?u=74407d5544e6e09de1a62cccf&id=5a44d0bce9',
siteUrl,
},
plugins: [
'gatsby-plugin-minify-html',
'gatsby-plugin-sass',
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
'gatsby-plugin-offline',
'gatsby-plugin-sitemap',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
{
resolve: `gatsby-plugin-plausible`,
options: {
domain: hostname,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `locale`,
path: `${__dirname}/src/locales`,
},
},
{
resolve: `gatsby-plugin-webfonts`,
options: {
fonts: {
google: [
{
family: 'Abel',
variants: ['300', '400', '500'],
},
],
},
},
},
{
resolve: `gatsby-plugin-react-i18next`,
options: {
siteUrl,
localeJsonSourceName: `locale`,
languages: [`en`, `fr`],
defaultLanguage: `en`,
i18nextOptions: {
keySeparator: false,
nsSeparator: '::',
},
pages: [],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: title,
short_name: title,
start_url: `/`,
background_color: `#1d2026`,
theme_color: `#1998ff`,
display: `minimal-ui`,
icon: `${__dirname}/src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: true, // Print removed selectors and processed file names
develop: true, // Enable while using `gatsby develop`
purgeCSSOptions: {
safelist: [
'navbar',
'navbar-expand-lg',
'navbar-dark',
'navbar-light',
'navbar-collapse',
'collapse',
'collapsed',
'navbar-brand',
'navbar-toggler',
'navbar-toggler-icon',
'navbar-nav',
'nav-item',
'nav-link',
'dropdown',
'dropdown-toggle',
'dropdown-item',
'dropdown-menu',
'show',
'alert',
'alert-success',
'alert-danger',
'visually-hidden',
],
},
},
},
],
};