-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
95 lines (93 loc) · 2.33 KB
/
gatsby-config.ts
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
import path from "path"
import { String } from "runtypes"
const title = process.env.npm_package_name && String.check(process.env.npm_package_name)
const description = process.env.npm_package_description && String.check(process.env.npm_package_description)
export const siteMetadata = { title, description }
export const plugins: unknown[] = [
"gatsby-plugin-typescript",
{
resolve: "gatsby-plugin-material-ui",
options: {
stylesProvider: {
injectFirst: true,
},
},
},
{
resolve: "gatsby-plugin-prefetch-google-fonts",
options: {
fonts: [
{
family: "Open Sans",
variants: ["300", "300i", "400", "400i", "500", "500i", "700", "700i"],
},
{
family: "Overpass",
variants: ["400", "500", "700"],
},
{
family: "Source Code Pro",
variants: ["400", "500", "700"],
},
],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: path.join(__dirname, "src", "pages"),
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: path.join(__dirname, "src", "images"),
},
},
"gatsby-plugin-mdx",
{
resolve: "gatsby-plugin-manifest",
options: {
name: title,
short_name: title,
icon: require.resolve("./src/images/logo.png"),
},
},
{
resolve: "gatsby-plugin-env-variables",
options: {
whitelist: ["npm_package_name", "npm_package_version", "npm_package_description"],
},
},
"gatsby-plugin-react-helmet",
"gatsby-plugin-sass",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-plugin-graphql-codegen",
options: {
documentPaths: ["./src/**/*.{ts,tsx}"],
},
},
]
if (process.env.THEME_DEVELOPMENT) {
plugins.push(
{
resolve: "gatsby-alias-imports",
options: {
aliases: {
react: "./node_modules/react",
"@cs125/react-google-login": "../react-google-login",
"@cs125/element-tracker": "../element-tracker/",
"@cs125/mace": "../mace",
"@cs125/jeed": "../jeed/react",
"@cs125/chitter": "../chitter/",
"@cs125/personable-client": "../personable/pubs/client/",
},
},
},
"gatsby-plugin-webpack-bundle-analyser-v2"
)
}