-
Notifications
You must be signed in to change notification settings - Fork 12
/
gatsby-config.js
71 lines (68 loc) · 1.95 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
const colors = require('tailwindcss/colors');
const tailwindConfig = require('./tailwind.config.js');
module.exports = {
siteMetadata: {
title: `freeCodeCamp Nashville`,
description: `A meetup for developers, designers, and students in Middle Tennessee involved in the freeCodeCamp.com learning community`,
baseUrl: 'https://fcc-nashville.netlify.app',
// TODO: Update baseUrl to new domain name once we migrate there
},
plugins: [
`gatsby-plugin-eslint`,
`gatsby-plugin-react-helmet`,
// TODO: figure this out
// https://www.gatsbyjs.org/packages/gatsby-plugin-manifest/?=
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `free-code-camp-nashville`,
short_name: `free-code-camp-nashville`,
start_url: `/`,
background_color: colors.white,
theme_color: colors.teal['400'],
display: `minimal-ui`,
icon: `static/favicon-32.png`,
},
},
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require(`tailwindcss`)(tailwindConfig),
require(`autoprefixer`),
...(process.env.NODE_ENV === `production`
? [require(`cssnano`)]
: []),
],
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /assets/,
},
},
},
// TODO: more plugins
// {
// resolve: `gatsby-plugin-typography`,
// options: {
// pathToConfigModule: `src/utils/typography`,
// },
// },
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};