-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
114 lines (113 loc) · 3.07 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
const path = require('path')
const config = require('./src/config')
module.exports = {
siteMetadata: {
title: config.siteTitle,
description: config.siteDescription,
url: config.siteUrl,
startUrl: config.startUrl,
keyWords: config.siteKeywords,
language: config.siteLanguage,
author: {
name: config.name,
location: config.location,
email: config.email,
github: config.github,
twitter: config.twitterHandle,
socialMedia: config.socialMedia
},
themeBg: config.background,
themeFg: config.main
},
plugins: [
{
resolve: 'gatsby-plugin-alias-imports',
options: {
alias: {
'@components': path.resolve(__dirname, 'src/components'),
'@config': path.resolve(__dirname, 'src/config'),
'@content': path.resolve(__dirname, 'src/content'),
'@fonts': path.resolve(__dirname, 'src/fonts'),
'@images': path.resolve(__dirname, 'src/images'),
'@layouts': path.resolve(__dirname, 'src/layouts'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@styles': path.resolve(__dirname, 'src/styles'),
'@templates': path.resolve(__dirname, 'src/templates'),
'@utils': path.resolve(__dirname, 'src/utils'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@context': path.resolve(__dirname, 'src/context')
},
extensions: ['js', 'jsx', 'md']
}
},
{
resolve: 'gatsby-plugin-lodash',
options: {
disabledFeatures: ['exotics']
}
},
{
resolve: 'gatsby-plugin-styled-components',
options: {
displayName: true,
fileName: false
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: `${__dirname}/src/content`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'src', 'images')
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1rem'
}
},
'gatsby-remark-prismjs',
{
resolve: 'gatsby-remark-external-links',
options: {
target: '_blank',
rel: 'nofollow noopener noreferrer'
}
},
'gatsby-remark-copy-linked-files',
'gatsby-remark-smartypants',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1140,
quality: 90,
linkImagesToOriginal: true
}
}
]
}
},
'gatsby-transformer-json',
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: 'https://gatsby-starter-typescript-plus.netlify.com'
}
},
'gatsby-plugin-typescript',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-react-helmet'
]
}