-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
52 lines (48 loc) · 1.15 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
const path = require('path')
module.exports = {
pathPrefix: '/',
siteMetadata: {
title: 'Found Him.',
siteUrl: 'https://youfoundron.com'
},
plugins: [
// analytics & SEO
'gatsby-plugin-sitemap',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-google-analytics',
options: { trackingId: 'UA-52765720-1' }
},
// source blog posts
{
resolve: 'gatsby-source-buttercms-blog',
options: {
authToken: 'fac8fdb770c99d13328431879db922ea3efc57db',
templatePath: path.resolve('./src/templates/post.js'),
listArgs: { page_size: 999 }
}
},
// image optimization
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/content/images`
}
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
// style optimization
'gatsby-plugin-purify-css',
{
resolve: 'gatsby-plugin-postcss-sass',
options: {
postCssPlugins: [
require('autoprefixer')(),
require('postcss-import')(),
require('postcss-simple-vars')()
]
}
}
]
}