-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
72 lines (72 loc) · 2.01 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
module.exports = {
siteMetadata: {
title: `Joel Torres`,
siteUrl: `https://www.joeltorres.me`
},
plugins: ["gatsby-plugin-styled-components", 'gatsby-plugin-sitemap', 'gatsby-plugin-netlify', "gatsby-plugin-react-helmet", "gatsby-plugin-image", "gatsby-plugin-sharp", "gatsby-transformer-sharp",
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/pages`,
name: 'pages'
},
}, {
resolve: 'gatsby-plugin-manifest',
options: {
icon: './src/images/favicons/favicon.png',
icon_options: {
purpose: `any maskable`,
},
name: `Joel Torres`,
short_name: `Joel Torres`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#fff`,
display: `standalone`,
},
}, {
resolve: 'gatsby-plugin-purgecss',
options: {
printRejected: true,
purgeCSSOptions: {
// https://purgecss.com/configuration.html#options
// safelist: ['safelist'], // Don't remove this selector
},
// More options defined here https://purgecss.com/configuration.html#options
},
}, 'gatsby-plugin-offline', {
resolve: 'gatsby-plugin-minify',
options: {
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true,
removeComments: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
processConditionalComments: true
}
}, {
resolve: 'gatsby-plugin-html-minifier',
options: {
caseSensitive: false,
collapseBooleanAttributes: false,
useShortDoctype: false
}
}, {
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
'UA-228930985-1',
],
gtagConfig: {
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: true,
respectDNT: true,
},
},
},]
};