-
Notifications
You must be signed in to change notification settings - Fork 21
/
gatsby-config.js
53 lines (52 loc) · 1.25 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
const ggConfig = require('./gg.config.json');
module.exports = {
pathPrefix: ggConfig.pathPrefix,
siteMetadata: {
userLogo: ggConfig.siteMetadata.userLogo,
},
plugins: [
`gatsby-plugin-sass`,
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `discussions`,
path: `${__dirname}/discussions`,
ignore: [
// `${__dirname}/discussions/rgd.json`,
`${__dirname}/discussions/rgd.yml`,
`${__dirname}/discussions/feed.xml`,
],
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'@src': 'src',
'@comps': 'src/components',
'@layouts': 'src/layouts',
'@pages': 'src/pages',
'@styles': 'src/styles',
'@hooks': 'src/hooks',
'@templates': 'src/templates',
'@utils': 'src/utils',
'@icons': 'src/icons',
},
extensions: ['js', 'jsx', 'ts', 'tsx'],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: ggConfig.manifest,
},
{
resolve: `gatsby-plugin-offline`,
options: {
workboxConfig: {
importWorkboxFrom: `cdn`,
},
},
},
],
};