-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
71 lines (69 loc) · 2.19 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require(`path`)
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'UA-141179420-1',
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Avoids sending pageview hits from custom paths
exclude: [],
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
// Defers execution of google analytics script after page load
defer: false,
// Any additional optional fields
sampleRate: 5,
siteSpeedSampleRate: 10,
cookieDomain: 'alexisduran.com'
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`)
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: path.join(__dirname, `src`, `blog`)
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-highlight-code`
},
{
resolve: 'gatsby-remark-external-links'
}
]
}
},
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-sass`,
options: {
postCssPlugins: [
require('tailwindcss'),
require('./tailwind.config.js')
]
}
}
]
}