-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgatsby-config.js
55 lines (55 loc) · 1.46 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
module.exports = {
pathPrefix: '/theme-set',
siteMetadata: {
title: `💄 AntV ThemeSet`,
description: '',
githubUrl: 'https://github.com/antvis/theme-set',
author: 'visiky',
contact: 'https://github.com/visiky',
},
flags: {
DEV_SSR: true,
},
plugins: [
{
// https://developers.google.com/analytics/devguides/collection/gtagjs?hl=zh-cn
resolve: `gatsby-plugin-google-gtag`,
options: {
// The property ID; the tracking code won't be generated without it
trackingIds: ['G-70FE65R1DD'],
},
},
{
resolve: 'gatsby-plugin-antd',
options: {
style: true,
},
},
{
resolve: 'gatsby-plugin-less',
options: {
strictMath: true,
lessOptions: {
javascriptEnabled: true,
modifyVars: {
'primary-color': '#873bf4',
'font-family': 'Arial',
},
},
},
},
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Antv ThemeSet`,
short_name: `Antv ThemeSet`,
background_color: `#6b37bf`,
theme_color: `#6b37bf`,
icon: require.resolve(`./src/static/images/favicon.png`), // This path is relative to the root of the site.
},
}, // this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};