-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgatsby-config.js
116 lines (115 loc) · 2.68 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
const path = require("path");
const robots = require("./config/robots");
module.exports = {
siteMetadata: {
siteUrl: "https://dds.mil/",
},
plugins: [
{
resolve: `gatsby-plugin-typescript`,
options: {
isTSX: true,
allExtensions: true,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-167416376-1",
exclude: ["/admin/**"],
defer: true,
},
},
{
resolve: "gatsby-plugin-root-import",
options: {
components: path.join(__dirname, "src/components"),
hooks: path.join(__dirname, "src/hooks"),
sections: path.join(__dirname, "src/sections"),
pages: path.join(__dirname, "src/pages"),
layouts: path.join(__dirname, "src/layouts"),
types: path.join(__dirname, "src/types"),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `media`,
path: `${__dirname}/media`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content`,
},
},
`gatsby-transformer-json`,
{
resolve: "gatsby-transformer-sharp",
options: {
checkSupportedExtensions: false,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-embed-video",
options: {
width: 800,
height: 400,
related: false,
noIframeBorder: true,
},
},
{
resolve: `gatsby-relative-pathify-images`,
options: {
relativePathPrefix: "../../media/",
},
},
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 600,
},
},
`gatsby-remark-responsive-iframe`,
],
},
},
`gatsby-plugin-preact`,
`gatsby-plugin-sass`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-sitemap`,
options: {
exclude: ["/admin/*"],
},
},
{
resolve: `gatsby-plugin-robots-txt`,
options: robots,
},
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "media/logo-desktop-full.png",
},
},
{
resolve: "gatsby-plugin-netlify-cms",
options: {
enableIdentityWidget: false,
htmlTitle: "Admin | Defense Digital Service",
modulePath: `${__dirname}/src/cms/cms.tsx`,
manualInit: true,
},
},
"gatsby-plugin-remove-serviceworker",
],
};