-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
73 lines (70 loc) · 1.72 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
plugins: [
{
resolve: `gatsby-plugin-preload-fonts`,
options: {
crossOrigin: pathname =>
pathname.match(/^\/elevated/) ? `use-credentials` : `anonymous`,
},
},
{
resolve: `gatsby-plugin-sharp`,
options: {
// Available options and their defaults:
base64Width: 20,
forceBase64Format: ``, // valid formats: png,jpg,webp
useMozJpeg: process.env.GATSBY_JPEG_ENCODER === `MOZJPEG`,
stripMetadata: true,
defaultQuality: 50,
failOnError: true,
},
},
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/images/favicon-logo.png",
// WebApp Manifest Configuration
appName: null, // Inferred with your package.json
appDescription: null,
developerName: null,
developerURL: null,
dir: "auto",
lang: "en-US",
background: "#fff",
theme_color: "#fff",
display: "standalone",
orientation: "any",
start_url: "/?homescreen=1",
version: "1.0",
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
yandex: false,
windows: false,
},
},
},
{
resolve: `gatsby-plugin-styled-components`,
options: {
// Add any options here
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
],
}