-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
76 lines (74 loc) · 2.07 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
const path = require("path");
const resolveConfig = require("tailwindcss/resolveConfig");
const tailwindConfig = require("./tailwind.config.js");
const fullConfig = resolveConfig(tailwindConfig);
module.exports = {
siteMetadata: {
title: `Central Valley Gamers`,
description: `Bringing together gamers in California's Central Valley.`,
author: `@marceloalves`,
},
plugins: [
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /images\/.*\.svg/, // See below to configure properly
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`),
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: "gatsby-background-image",
options: {
// add your own characters to escape, replacing the default ':/'
specialChars: "/:",
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Central Valley Gamers`,
short_name: `CVG`,
start_url: `/`,
background_color: fullConfig.theme.colors.white,
theme_color: fullConfig.theme.colors.black,
display: `minimal-ui`,
icon: `src/images/cvg-icon.png`,
},
},
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require(`tailwindcss`)(tailwindConfig),
require(`autoprefixer`),
...(process.env.NODE_ENV === `production`
? [require(`cssnano`)]
: []),
],
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: "UA-17779388-1",
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Defers execution of google analytics script after page load
defer: false,
},
},
],
};