-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
107 lines (106 loc) · 2.96 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
module.exports = {
siteMetadata: {
title: 'Eddayy',
description: `My name's Edmund Tay, a developer from Malaysia`,
author: 'Edmund Tay',
image:'/favicon.png',
github:'https://github.com/Eddayy',
repo:'https://github.com/Eddayy/Eddayy.github.io/tree/development',
gitlab:'https://gitlab.com/edmundtay96',
linkendin:'https://www.linkedin.com/in/eddyble/',
css: 'https://bulma.io/',
},
plugins: [
'gatsby-plugin-offline',
'gatsby-source-git-commit',
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Edmund's Blog`,
short_name: 'Blog',
start_url: '/',
background_color: '#ffffff',
theme_color: '#ffffff',
display: 'minimal-ui',
icon: 'static/favicon.png', // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`,
omitGoogleFont: true,
},
},
'gatsby-plugin-sass',
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: true, // Print removed selectors and processed file names
// develop: true, // Enable while using `gatsby develop`
// tailwind: true, // Enable tailwindcss support
// whitelist: ['whitelist'], // Don't remove this selector
// ignore: ['/ignored.css', 'prismjs/', 'docsearch.js/'], // Ignore files/folders
// purgeOnly : ['components/', '/main.css', 'bootstrap/'], // Purge only these files/folders
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
quality:80,
withWebp:true,
maxWidth: 600,
wrapperStyle:'width: 100%'
},
},
],
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-131170437-1",
cookieDomain: "Eddayy.github.io",
},
},
// {
// resolve: `gatsby-plugin-hotjar`,
// options: {
// id: 1154418,
// sv: 6
// },
// },
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/markdown/`,
name: "markdown-pages",
},
},
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: ['Work Sans:600', 'Quattrocento Sans:400,400i,700']
}
}
}
],
}