-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
43 lines (41 loc) · 1.05 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
const path = require('path');
const config = require('./config');
const { manifest } = config;
module.exports = {
pathPrefix: config.pathPrefix,
siteMetadata: {
title: config.siteTitle,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `svg`,
path: path.join(__dirname, 'src', 'assets', 'svg'),
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: manifest.name,
short_name: manifest.shortName,
start_url: config.pathPrefix || manifest.startUrl,
background_color: manifest.backgroundColor,
theme_color: manifest.themeColor,
display: manifest.display,
icon: manifest.icon, // This path is relative to the root of the site.
},
},
'gatsby-plugin-sass',
'gatsby-plugin-offline',
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-158286130-1',
},
},
],
};