-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
50 lines (49 loc) · 1.26 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
const path = require('path')
module.exports = {
siteMetadata: {
title: 'Luuppi ry - 50 vuotta',
},
plugins: [
// Allows injecting tags to <head> without putting code to html.js
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
// Allows to use Gatsby 1.0 -styled layout architecture
// --> we dont need to load header again on every page load
'gatsby-plugin-layout',
{
// Shows progress bar on top of the page
resolve: 'gatsby-plugin-nprogress',
options: {
color: '#f0ad00',
},
},
{
// Allows Google fonts to load earlier
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: ['Crimson Text', 'Raleway'],
},
},
{
// Allows to get images from graphql-queries
// --> enables lazy loading
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, 'src', 'static', 'images'),
},
},
// Image helper plugins
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-128273037-1',
head: false,
anonymize: true,
respectDNT: true,
},
},
],
}