-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
95 lines (95 loc) · 2.89 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* eslint-disable quotes */
module.exports = {
siteMetadata: {
title: "Scrobbly",
description: "Scrobbly, a beautiful iOS mobile app for Last.fm",
author: "@anhek",
siteUrl: "https://scrobbly.netlify.app/",
},
plugins: [
`gatsby-plugin-netlify`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Scrobbly, a beautiful iOS mobile app for Last.fm",
short_name: "Scrobbly | Homepage",
start_url: "/",
background_color: "#111111",
theme_color: "#EB5845",
description: `Scrobbly is a clean and elegant iOS mobile app to display your Last.fm music data.`,
lang: `en`,
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: "standalone",
icon: "src/images/icon.png", // This path is relative to the root of the site.
// An optional attribute which provides support for CORS check.
// If you do not provide a crossOrigin option, it will skip CORS for manifest.
// Any invalid keyword or empty string defaults to `anonymous`
crossOrigin: `use-credentials`,
},
},
{
resolve: "gatsby-plugin-svgr",
options: {
prettier: true, // use prettier to format JS code output (default)
svgo: true, // use svgo to optimize SVGs (default)
svgoConfig: {
removeViewBox: true, // remove viewBox when possible (default)
cleanupIDs: true, // remove unused IDs and minify remaining IDs (default)
removeDimensions: true,
},
},
},
"gatsby-plugin-eslint",
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`Inter:400,700`],
display: "sans-serif",
},
},
{
resolve: `gatsby-plugin-emotion`,
options: {
// Accepts all options defined by `babel-plugin-emotion` plugin.
},
},
{
resolve: `gatsby-plugin-postcss`,
options: {
// Accepts all options defined by `gatsby-plugin-postcss` plugin.
},
},
"gatsby-plugin-styled-components",
"gatsby-plugin-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/images/icon.png",
},
},
"gatsby-plugin-mdx",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
],
};