This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
gatsby-config.js
87 lines (86 loc) · 1.72 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
const clay = require('clay-css');
const path = require('path');
module.exports = {
// pathPrefix: '/gatsby-boilerplate',
plugins: [
'gatsby-plugin-meta-redirect',
{
resolve: 'gatsby-plugin-sass',
options: {
precision: 8,
includePaths: clay
.includePaths
.concat(
path.join(
clay.includePaths[0],
'node_modules'
)
),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'packages',
path: `${__dirname}/content`,
},
},
{
resolve: 'gatsby-mdx',
options: {
extensions: ['.mdx', '.md'],
gatsbyRemarkPlugins: [
{
resolve: path.resolve(__dirname, './plugins/gatsby-remark-code-label-extractor'),
},
{
resolve: 'gatsby-remark-prismjs',
pluginOptions: {
classPrefix: 'gatsby-code-',
},
},
{
resolve: path.resolve(__dirname, './plugins/gatsby-remark-use-clipboard'),
},
],
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GA_TRACKING_ID,
},
},
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Gatsby Boilerplate',
short_name: 'Gatsby Boilerplate',
start_url: '/',
background_color: '#FFFFFF',
theme_color: '#0B5FFF',
display: 'minimal-ui',
icons: [
{
"src": "favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "favicons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
},
},
{
resolve: 'gatsby-plugin-offline',
options: {
globPatterns: ['**/*.{js,jpg,png,gif,html,css,svg}'],
},
},
'gatsby-plugin-zopfli'
],
};