-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
38 lines (37 loc) · 996 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
35
36
37
38
const path = require("path");
module.exports = {
plugins: [
'gatsby-plugin-top-layout',
'gatsby-plugin-react-helmet',
'gatsby-plugin-mui-emotion',
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: path.resolve(__dirname, "static", "posts"),
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [".mdx", ".md"],
},
},
{
resolve: "gatsby-plugin-root-import",
options: {
components: path.join(__dirname, "src/components"),
layouts: path.join(__dirname, "src/layouts"),
templates: path.join(__dirname, "src/templates"),
scss: path.join(__dirname, "src/scss"),
types: path.join(__dirname, "src/types"),
src: path.join(__dirname, "src"),
pages: path.join(__dirname, "src/pages"),
},
},
],
};