-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathgatsby-config.js
79 lines (79 loc) · 1.85 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
75
76
77
78
79
module.exports = {
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-emotion`,
// create routes for client side routing
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/app/*`] },
},
// provide fonts from Google fonts
// {
// resolve: `gatsby-plugin-prefetch-google-fonts`,
// options: {
// fonts: [
// {
// family: `Montserrat`,
// variants: [`400`, `700`],
// },
// ],
// },
// },
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: ['Montserrat:400,700']
}
}
},
// plugins for PWA support
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Sol Journal`,
short_name: `Sol Journal`,
start_url: `/app`,
background_color: `#FFF`,
theme_color: `#FFF`,
display: `standalone`,
icon: `src/img/splash.png`,
},
},
// plugins for optimized images
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/img`,
},
},
// parse data from /src/data as Javascrip objects
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`,
},
},
// easier imports and exports by defining aliases
// for commonly used folders
{
resolve: "gatsby-plugin-module-resolver",
options: {
root: "./src",
aliases: {
components: "./components",
data: "./data",
img: "./img",
routes: "./routes",
styles: "./styles",
utils: "./utils",
},
},
},
],
}