-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgatsby-config.js
More file actions
53 lines (52 loc) · 1.26 KB
/
Copy pathgatsby-config.js
File metadata and controls
53 lines (52 loc) · 1.26 KB
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
var cssnext = require('postcss-cssnext')
var cssreporter = require('postcss-reporter')
var config = require('./src/config')
module.exports = {
siteMetadata: {
title: config.name,
siteUrl: config.url,
},
plugins: [
// Turn on offline before deploy
// `gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-react-next`,
'gatsby-plugin-resolve-src',
`gatsby-plugin-sitemap`,
'gatsby-plugin-sharp',
{
resolve: `gatsby-plugin-postcss-sass`,
options: {
data: '@import "~app.scss";',
postCssPlugins: [
cssnext({browsers: ['last 2 versions', 'IE > 10']}),
cssreporter({ clearMessages: true }),
],
precision: 5, // SASS default: 5
},
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
// Setting a color is optional.
color: `tomato`,
// Disable the loading spinner.
showSpinner: true,
},
},
{
resolve: `gatsby-google-analytics-custom`,
options: {
trackingId: config.googleAnalytics,
},
},
`gatsby-transformer-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
],
}