forked from South-Paw/awesome-gatsby-starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
83 lines (78 loc) · 2.53 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
module.exports = {
siteMetadata: {
name: 'Awesome Gatsby Starter TypeScript',
basepath: 'https://awesome-gatsby-starter-ts.netlify.app',
description: 'A TypeScript starter for GatsbyJS with a preconfigured MDX, Storybook and ESLint environment',
keywords: ['gatsby', 'gatsbyjs', 'gatsby starter', 'typescript', 'github'],
type: 'website',
image: 'https://awesome-gatsby-starter-ts.netlify.app/ok.png',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages/`,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
defaultLayouts: {
pages: require.resolve('./src/templates/Page.tsx'),
},
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/assets`,
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'gatsby-starter-default',
short_name: 'starter',
start_url: '/',
background_color: '#663399',
theme_color: '#663399',
display: 'minimal-ui',
icon: 'src/assets/ok.png', // This path is relative to the root of the site
},
},
// The following are all optional plugins that you may find useful.
// If you choose not to use them, consider removing them from your package.json!
// This plugin enables Progressive Web App + Offline functionality
// https://gatsby.app/offline
// 'gatsby-plugin-offline',
// https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/
// {
// resolve: 'gatsby-plugin-google-analytics',
// options: {
// trackingId: 'YOUR_GOOGLE_ANALYTICS_TRACKING_ID',
// head: false,
// anonymize: false,
// respectDNT: false,
// },
// },
// (optional) Enable the following for Google tag manager
// https://www.gatsbyjs.org/packages/gatsby-plugin-google-tagmanager/
// {
// resolve: 'gatsby-plugin-google-tagmanager',
// options: {
// id: 'YOUR_GOOGLE_TAGMANAGER_ID',
// defaultDataLayer: { platform: "gatsby" },
// },
// },
// (optional) Enable the following for generation of an XML sitemap
// https://www.gatsbyjs.org/packages/gatsby-plugin-advanced-sitemap/
// 'gatsby-plugin-advanced-sitemap',
],
};