-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
93 lines (93 loc) · 2.54 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
module.exports = {
flags: {
PRESERVE_FILE_DOWNLOAD_CACHE: true,
DETECT_NODE_MUTATIONS: true,
PARALLEL_SOURCING: true,
FAST_DEV: true,
},
pathPrefix: "/", // This path is subpath of your hosting https://domain/portfolio,
siteMetadata: {
title: "ESCEMI",
},
plugins: [
"gatsby-plugin-eslint",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sass",
"gatsby-plugin-fontawesome-css",
"gatsby-plugin-offline",
{
resolve: "gatsby-plugin-typescript",
options: {
isTSX: true, // defaults to false
jsxPragma: "jsx", // defaults to "React"
allExtensions: true, // defaults to false
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "ESCEMI - À votre service",
short_name: "ESCEMI",
description:
"À votre service pour vous accompagner et relever les défis de vos projets digitaux",
start_url: "/",
background_color: "#1c3144",
theme_color: "#1c3144",
display: "standalone",
lang: "fr",
localize: [
{
start_url: `/en/`,
lang: `en`,
name: `ESCEMI - At your service`,
short_name: `ESCEMI`,
description: `At your service to support you and meet the challenges of your digital projects`,
},
],
icon: "src/assets/img/website-icon.png", // This path is relative to the root of the site.
icon_options: {
// For all the options available,
// please see the section "Additional Resources" below.
purpose: `any maskable`,
},
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/assets/img`,
},
},
{
resolve: "gatsby-plugin-purgecss",
options: {
printRejected: true, // Print removed selectors and processed file names
develop: true, // Enable while using "gatsby develop"
},
},
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/src/locales`,
name: "locale",
},
},
{
resolve: "gatsby-plugin-react-i18next",
options: {
siteUrl: "https://www.escemi.com",
localeJsonSourceName: "locale",
languages: ["fr", "en"],
defaultLanguage: "fr",
i18nextOptions: {
nsSeparator: "::",
},
pages: [],
},
},
],
};