forked from antvis/Graphin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
100 lines (96 loc) · 2.65 KB
/
.umirc.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
94
95
96
97
98
99
100
import { join } from 'path';
const isProduction = process.env.NODE_ENV === 'production';
export default {
title: 'Graphin',
mode: 'site',
base: '/',
publicPath: '/',
logo: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
favicon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
// sitemap: {
// hostname: 'graphin.antv.vision',
// },
extraBabelIncludes: ['@antv/dumi-theme-antv'],
resolve: {
includes: [
'packages/graphin/docs/',
'packages/graphin/src/components',
'packages/graphin-icons/src',
// 'packages/graphin-components/src/',
// 'packages/graphin-graphscope/docs/',
/** local develop */
// 'packages/graphin-components/src/VisSettingPanel',
],
},
alias: {
'@antv/graphin': join(__dirname, 'packages', 'graphin'),
'@antv/graphin-components': join(__dirname, 'packages', 'graphin-components'),
'@antv/graphin-icons': join(__dirname, 'packages', 'graphin-icons'),
'@antv/graphin-graphscope': join(__dirname, 'packages', 'graphin-graphscope'),
},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
],
],
metas: [
{
name: 'keywords',
content: 'graphin,g6,graph,Graphin,AntV Graph',
},
],
navs: [
null,
{
title: 'GraphInsight',
path: 'https://graphinsight.antgroup.com/home.html#/',
},
// {
// title: 'GitHub',
// path: 'https://github.com/antvis/Graphin',
// },
],
analytics: isProduction ? { ga: 'UA-148148901-8' } : false,
hash: true,
ssr: {
devServerRender: false,
},
exportStatic: {},
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
antd: 'window.antd',
'@antv/g6': 'window.G6',
},
targets: {
chrome: 80,
firefox: false,
safari: false,
edge: false,
ios: false,
},
theme: {
'@s-site-menu-width': '280px',
'@primary-color': '#873bf4',
},
locales: [
['zh-CN', '中文'],
['en-US', 'English'],
],
links: ['https://gw.alipayobjects.com/os/lib/antd/4.6.6/dist/antd.css'],
scripts: [
'https://gw.alipayobjects.com/os/lib/react/16.13.1/umd/react.development.js',
'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.development.js',
'https://gw.alipayobjects.com/os/lib/antd/4.6.6/dist/antd-with-locales.js',
/** G6 **/
'https://gw.alipayobjects.com/os/lib/antv/g6/4.7.0/dist/g6.min.js',
'https://gw.alipayobjects.com/os/lib/antv/g6/4.7.0/dist/g6.min.js.map',
/** lodash */
'https://gw.alipayobjects.com/os/lib/lodash/4.17.20/lodash.min.js',
],
};