-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
38 lines (37 loc) · 922 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
plugins: [
'gatsby-plugin-top-layout',
{
resolve: 'gatsby-plugin-material-ui',
// If you want to use styled components you should change the injection order.
options: {
stylesProvider: {
injectFirst: true,
},
},
},
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: [`merriweather\:400,400i,700,900`, `open sans\:400,600,700`],
display: 'swap',
},
},
// If you want to use styled components you should add the plugin here.
// 'gatsby-plugin-styled-components',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-sass',
options: {
implementation: require('sass'),
},
},
'gatsby-plugin-svgr',
],
siteMetadata: {
siteUrl: process.env.GATSBY_SITE_URL,
},
}