-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.mjs
94 lines (92 loc) · 3.01 KB
/
gatsby-config.mjs
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { createRequire } from "module"
import { dirname, join } from "path"
import { fileURLToPath } from "url"
const __dirname = dirname(fileURLToPath(import.meta.url))
const require = createRequire(import.meta.url)
const config = {
siteMetadata: {
title: 'Code Witch',
description:
'Jocelyn Irwin - Code Witch | Solving real-world problems through intuitive interfaces, clean code, and collaborative team cultures. Explore my projects and expertise in web development, React, and more.',
canonical: 'https://www.jocelynirwin.com',
keywords:
'Portfolio, Software Engineering, Web Development, React, TypeScript, Agile Methodologies, User Interface Design, User Experience, Developer Experience, Clean Code Practices, Prototyping, Lean Product Development, Technical Manager, Women in Computing',
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
'G-S5Q1TY8B2P', // Google Analytics ID
'257417247',
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
anonymize_ip: true,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ['/preview/**', '/do-not-track/me/too/'],
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: join(__dirname, `src`, `images`),
ignore: [`**/\.*`], // ignore files starting with a dot
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: join(__dirname, `src`, `data`),
ignore: [`**/\.*`], // ignore files starting with a dot
},
},
{
resolve: `gatsby-plugin-sass`,
options: {
implementation: require('sass'),
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `jocelyn-irwin-code-witch`,
short_name: `josie`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `standalone`,
icon: `src/images/logo.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`Raleway\:300,400,700`, `Lato\:300,400,700,300i,400i`, `Allura\:400`],
},
},
`gatsby-plugin-typescript`,
`gatsby-transformer-sharp`,
`gatsby-transformer-json`,
`gatsby-plugin-sharp`,
'gatsby-plugin-offline',
'gatsby-plugin-image',
'gatsby-transformer-remark'
],
flags: {
// DEV_SSR: true,
},
};
export default config;