-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
80 lines (78 loc) · 1.63 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
const path = require('path');
require('dotenv').config();
const gatsbyRequiredRules = path.join(
process.cwd(),
'node_modules',
'gatsby',
'dist',
'utils',
'eslint-rules',
);
module.exports = {
siteMetadata: {
title: 'Karate-Team-Oborniki',
siteUrl: 'https://www.yourdomain.tld',
},
plugins: [{
resolve: 'gatsby-source-datocms',
options: {
apiToken: process.env.API_DATO_CMS,
},
},
'gatsby-plugin-styled-components',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/assets/images/',
},
__key: 'images',
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Karate Team Oborniki',
short_name: 'Karate Team',
start_url: '/',
display: 'standalone',
icon: 'src/assets/images/logo.jpeg',
},
},
{
resolve: 'gatsby-plugin-root-import',
options: {
assets: path.join(__dirname, 'src', 'assets'),
components: path.join(__dirname, 'src', 'components'),
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
rulePaths: [gatsbyRequiredRules],
stages: ['develop'],
extensions: ['js', 'jsx', 'ts', 'tsx'],
exclude: ['node_modules', 'bower_components', '.cache', 'public'],
// ...
},
},
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: [
'montserrat\:300,500,700',
],
display: 'swap',
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /assets\/icons/,
},
},
}],
};