-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgatsby-config.js
More file actions
157 lines (153 loc) · 4.22 KB
/
gatsby-config.js
File metadata and controls
157 lines (153 loc) · 4.22 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* eslint-disable global-require */
require(`dotenv`).config({
path: `.env.build`,
});
module.exports = {
siteMetadata: {
title: `De Vierde Dimensie - 24e Lustrum der KSV Sanctus Virgilius`,
short_name: `XXIV memories`,
description: `Herbeleef De Vierde Dimensie, hét thema van het 24e Lustrum der Katholieke Studentenvereniging Sanctus Virgilius. Hier vind je alle media: foto's, video's en muziek van het lustrum!`,
author: `@techmaus`,
},
plugins: [
`gatsby-plugin-react-helmet-async`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: `UA-51532513-6`,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `XXIV Memories`,
short_name: `XXIV Memory`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#4dc0b5`,
display: `minimal-ui`,
icon: `src/assets/4d-logo.png`,
},
},
`gatsby-plugin-smoothscroll`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-transformer-remark`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/src/gallery_s-markdown`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `memory-pages`,
path: `${__dirname}/src/pages/memories`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
default: require.resolve("./src/components/layout-mdx.jsx"),
},
gatsbyRemarkPlugins: [
"gatsby-remark-unwrap-images",
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1035,
showCaptions: true,
},
},
],
},
},
`gatsby-transformer-remark`,
{
resolve: "gatsby-plugin-postcss",
options: {
postCssPlugins: [
require(`tailwindcss`)(`./tailwind.config.js`),
require(`autoprefixer`),
...(process.env.NODE_ENV === "production"
? [require(`cssnano`)]
: []),
],
},
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
extractors: [
{
extractor: (content) => content.match(/[\w-/.:]+(?<!:)/g) || [],
extensions: ["js", "ts", "jsx", "tsx", "md", "mdx"],
},
],
purgeOnly: [`src/css/style.css`],
whitelistPatterns: [
/black$/,
/gala$/,
/wispo$/,
/lustrumweek$/,
/theater$/,
/piekweek$/,
/^ril/,
/^shape/,
],
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-firebase`,
options: {
credential: {
type: process.env.TYPE,
project_id: process.env.PROJECT_ID,
private_key_id: process.env.PRIVATE_KEY_ID,
private_key: process.env.PRIVATE_KEY.replace(/\\n/g, `\n`),
client_email: process.env.CLIENT_EMAIL,
client_id: process.env.CLIENT_ID,
auth_uri: process.env.AUTH_URI,
token_uri: process.env.TOKEN_URI,
auth_provider_x509_cert_url: process.env.AUTH_PROVIDER_X509_CERT_URL,
client_x509_cert_url: process.env.CLIENT_X509_CERT_URL,
},
// your firebase database root url
databaseURL: `https://recap-vierdedimensie.firebaseio.com`,
// you can have multiple "types" that point to different paths
types: [
{
// this type will become `allWorkshop` in graphql
type: `images`,
// the path to get the records from
path: `images`,
},
],
},
},
{
resolve: `gatsby-plugin-web-font-loader`,
options: {
typekit: {
id: `bnu0cor`,
},
},
},
],
};