-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
67 lines (67 loc) · 1.47 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
module.exports = {
siteMetadata: {
title: 'J F Dietrich Photography',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/data/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `galleries`,
path: `${__dirname}/data/galleries`,
},
},
// parse album info
`gatsby-transformer-yaml`,
// parse all images files
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
// enable styled components
`gatsby-plugin-styled-components`,
// optimize svgs
{
resolve: 'gatsby-plugin-svgr',
options: {
icon: true,
viewBox: false,
},
},
{
resolve: 'gatsby-plugin-html-attributes',
options: {
lang: 'en',
},
},
{
resolve: 'gatsby-plugin-webpack-bundle-analyzer',
options: {
production: true,
disable: true,
},
},
// enable pwa
/* eslint-disable camelcase */
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'J F Dietrich Photography',
short_name: 'JFD Portfolio',
start_url: '/',
background_color: '#962E40',
theme_color: '#962E40',
display: 'standalone',
icon: 'src/assets/favicon.png',
include_favicon: true,
legacy: true,
},
},
`gatsby-plugin-offline`,
],
};