-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
139 lines (138 loc) · 3.61 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
132
133
134
135
136
137
138
139
const pkg = require('backbreeze/package.json');
module.exports = {
siteMetadata: {
title: `Backbreeze CSS`,
siteUrl: `http://backbreezecss.com`,
description: `Backbreeze is a CSS utility library written in Sass`,
author: `@n_cusan`,
version: pkg.version,
github: `https://github.com/nicolas-cusan/backbreeze`,
pages: [
{
name: 'Installation',
link: '/installation/',
id: 'installation',
},
{
name: 'Configuration',
link: '/configuration/',
id: 'configuration',
},
{
name: 'Mixins',
link: '/mixins/',
id: 'mixins',
},
{
name: 'Usage',
link: '/usage/',
id: 'usage',
},
{
name: 'Recipes',
link: '/recipes/',
id: 'recipes',
},
{
name: 'Using in production',
link: '/using-in-production/',
id: 'using-in-production',
},
],
},
plugins: [
`gatsby-plugin-sitemap`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: false,
// develop: true,
// debug: true,
ignore: ['destyle.css/'],
whitelist: ['typography'],
whitelistPatternsChildren: [/typography$/],
extractors: [
{
extractor: (content) => {
return content.match(/[\w-/:%@.]+(?<!:)/g) || [];
},
extensions: ['js', 'ts', 'jsx', 'tsx', 'md', 'mdx'],
},
],
},
},
{
resolve: 'gatsby-plugin-svgr',
// options: {
// prettier: true, // use prettier to format JS code output (default)
// svgo: true, // use svgo to optimize SVGs (default)
// svgoConfig: {
// removeViewBox: true, // remove viewBox when possible (default)
// cleanupIDs: true, // remove unused IDs and minify remaining IDs (default)
// },
// },
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-147083107-2',
// Puts tracking script in the head instead of the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `images`,
// path: `${__dirname}/src/images`,
// },
// },
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
default: require.resolve('./src/components/layout.js'),
},
rehypePlugins: [require('rehype-slug')],
},
},
`gatsby-plugin-catch-links`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Backbreeze Css`,
short_name: `BB`,
start_url: `/`,
background_color: `#f8c326`,
theme_color: `#f8c326`,
display: `minimal-ui`,
icon: `src/images/logo.svg`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};