-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
68 lines (66 loc) · 1.52 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
const path = require(`path`)
require("dotenv").config({ path: `.env` })
const prismicRepo = "amethyst"
// TODO(happens): Fix this to respect posts and pages
const linkResolver = ({ node, key, value }) => doc => `/${doc.uid}`
module.exports = {
plugins: [
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets/, // See below to configure properly
},
},
},
{
resolve: `gatsby-plugin-sass`,
options: {
cssLoaderOptions: {
camelCase: false,
},
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/assets`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-styled-components`,
options: {},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `The Amethyst Game Engine`,
short_name: `amethyst.rs`,
start_url: `/`,
background_color: `#7f41ef`,
theme_color: `#7f41ef`,
display: `minimal-ui`,
icon: `src/assets/logo-filled.svg`,
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-prismic`,
options: {
repositoryName: `amethyst`,
linkResolver,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: `${process.env.GOOGLE_ANALYTICS_ID}`,
head: true,
},
},
],
}