-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathgatsby-config.js
63 lines (61 loc) · 1.51 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
require("dotenv").config()
const DEV = process.env.NODE_ENV === "development"
module.exports = {
pathPrefix: "/gatsby-source-google-docs",
plugins: [
{
// resolve: "gatsby-source-google-docs",
resolve: require.resolve(`../..`),
options: {
// https://drive.google.com/drive/folders/1YJWX_FRoVusp-51ztedm6HSZqpbJA3ag
folder: "1YJWX_FRoVusp-51ztedm6HSZqpbJA3ag",
// --------
// Optional
// --------
debug: true,
createPages: true,
// skipImages: DEV ? true : false,
imagesOptions: {
width: DEV ? 512 : 1024,
},
},
},
{
resolve: "gatsby-plugin-webfonts",
options: {
fonts: {
google: [
{
family: "Quicksand",
variants: ["400", "700"],
fontDisplay: "fallback",
},
],
},
formats: ["woff2"],
usePreload: true,
},
},
// "gatsby-plugin-tailwindcss",
"gatsby-plugin-catch-links",
"gatsby-plugin-react-svg",
"gatsby-plugin-eslint",
"gatsby-plugin-layout",
"gatsby-plugin-theme-ui",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-mdx-embed",
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
"gatsby-remark-unwrap-images",
"gatsby-remark-images",
"gatsby-remark-gifs",
"gatsby-remark-prismjs",
],
},
},
],
}