-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
123 lines (117 loc) · 3.28 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
const { siteUrl } = require("./.env.json")
module.exports = {
siteMetadata: {
title: "Traveloggers",
description:
"Traveloggers is the avatars issued by Matters Lab, a Web 3 creator ecosystem, to mark the identity of a voyager to Matterverse. Owners of these avatars will have access to the most revolutionary experiments in Matterverse",
en: {
title: "Traveloggers",
description:
"Traveloggers is the avatars issued by Matters Lab, a Web 3 creator ecosystem, to mark the identity of a voyager to Matterverse. Owners of these avatars will have access to the most revolutionary experiments in Matterverse",
},
zh: {
title: "Traveloggers",
description:
"Traveloggers 是致力於搭建更自由與公平的 Web 3.0 創作者生態 Matters Lab 發行的 NFT 數字頭像,代表 Matterverse 的遠航者身份。擁有此身份,將開啟 Matterverse 中最激進的實驗權限。",
},
author: `@Mattersw3b`,
siteUrl,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-theme-i18n`,
options: {
defaultLang: `en`,
locales: `en zh`,
configPath: require.resolve(`./i18n/config.json`),
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
"~": "./src",
"@": "./",
},
extensions: ["ts", "tsx", "css"],
},
},
/**
* Assets
*/
// image
`gatsby-plugin-image`,
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `images`,
// path: `${__dirname}/src/images`,
// },
// },
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
/**
* Layout
*/
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/Layout/index.tsx`),
},
},
/**
* Components
*/
// icon
{
resolve: "gatsby-plugin-svgr",
options: {
prettier: true, // use prettier to format JS code output (default)
svgo: true, // use svgo to optimize SVGs (default)
memo: true,
dimensions: false,
svgoConfig: {
plugins: [
{ removeViewBox: false }, // remove viewBox when possible (default)
{ cleanupIDs: true }, // remove unused IDs and minify remaining IDs (default)
],
},
},
},
/**
* Styles
*/
// typography
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`Press Start 2P`],
display: "swap",
},
},
// css
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require(`postcss-mixins`)({
mixinsFiles: "./src/styles/mixins.css",
}),
require(`postcss-preset-env`)({
stage: 0,
preserve: false,
importFrom: [
"./src/styles/variables/breakpoints.css",
"./src/styles/variables/colors.css",
"./src/styles/variables/sizing.css",
"./src/styles/variables/spacing.css",
"./src/styles/variables/z-index.css",
"./src/styles/variables/typography.css",
],
}),
],
},
},
],
}