forked from npm/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
34 lines (33 loc) · 849 Bytes
/
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
const path = require('path')
module.exports = themeOptions => {
return {
plugins: [
'gatsby-plugin-styled-components',
'gatsby-plugin-react-helmet',
'gatsby-plugin-catch-links',
'gatsby-transformer-yaml',
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
defaultLayouts: {
default: require.resolve('./src/components/layout.js'),
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: path.resolve('./content'),
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: themeOptions.icon ? path.resolve(themeOptions.icon) : require.resolve('./src/images/favicon.png'),
},
},
],
}
}