-
Notifications
You must be signed in to change notification settings - Fork 5
/
gatsby-config.js
74 lines (73 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
const config = require('./data/config');
module.exports = {
siteMetadata: {
title: config.title,
description: config.description,
author: config.author,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/static/images`,
},
},
{
resolve: `gatsby-transformer-sharp`,
},
{
resolve: `gatsby-plugin-sharp`,
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.title,
short_name: `starter`,
start_url: `/`,
background_color: config.backgroundColor,
theme_color: config.themeColor,
display: `minimal-ui`,
icon: config.logo, // This path is relative to the root of the site.
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-instagram`,
options: {
// type: `user-profile`,
username: config.social.instagram,
},
},
// Optional: Google Analytics Tracking
// {
// resolve: 'gatsby-plugin-google-analytics',
// options: {
// trackingId: config.googleAnalyticsId,
// head: true,
// },
// },
{
resolve: `gatsby-plugin-styletron`,
options: {
// You can pass options to Styletron.
// Prefix all generated classNames:
prefix: `_`,
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
components: `${__dirname}/src/components`,
common: `${__dirname}/src/components/common/`,
static: `${__dirname}/static/`,
theme: `${__dirname}/src/components/theme`,
data: `${__dirname}/data/`,
},
},
},
],
};