-
Notifications
You must be signed in to change notification settings - Fork 10
/
gatsby-config.ts
75 lines (73 loc) · 2.19 KB
/
gatsby-config.ts
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
import { GatsbyConfig } from "gatsby"
import settings from "./config/settings.json"
import pkg from "./package.json"
const config: GatsbyConfig = {
// Build with env var PREFIX_PATHS=true to prefix all links & image paths with pathPrefix
// see https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/
pathPrefix: pkg.name,
siteMetadata: settings,
plugins: [
`gatsby-plugin-graphql-codegen`,
// generates `./schema.graphql`, which is referenced by `.graphqlrc.yml`, used by VS Code plugin GraphQL.vscode-graphql
`gatsby-plugin-extract-schema`,
// types for CSS modules
`gatsby-plugin-dts-css-modules`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `i18n`,
path: `config/i18n`,
},
},
`gatsby-transformer-inline-svg`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `config/images`,
},
},
{
// See https://www.gatsbyjs.com/plugins/gatsby-plugin-image/
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
formats: [`auto`, `avif`, `webp`],
placeholder: `blurred`,
},
},
},
`gatsby-transformer-video`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `videos`,
path: `config/videos`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-image`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: pkg.name,
short_name: pkg.name,
start_url: `/`,
background_color: `#663399`,
// This will impact how browsers show your PWA/website
// https://css-tricks.com/meta-theme-color-and-trickery/
// theme_color: `#663399`,
display: `minimal-ui`,
icon: `config/images/favicon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-sass`,
`gatsby-plugin-portal`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
]
}
export default config