This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
/
.umirc.ts
53 lines (51 loc) · 1.68 KB
/
.umirc.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
import { defineConfig } from 'dumi';
const logo = 'https://antv-2018.alipay.com/assets/image/icon/l7.svg';
const isProduction = process.env.NODE_ENV === 'production';
export default defineConfig({
title: 'Dipper',
favicon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
logo: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
mode: 'site',
base: '/',
publicPath: '/',
outputPath: 'docs-dist',
resolve: {
excludes: isProduction ? ['docs/dev'] : [],
},
metas: [
{ name: 'keywords', content: 'dipper, Dipper, L7, AntV, AntV Dipper' },
{ name: 'description', content: '🌍 地理分析应用研发框架' },
],
// Google Analytics
analytics: isProduction ? { ga: 'G-CBX7JL1Q57' } : false,
locales: [['zh-CN', '中文']],
navs: [
null,
{
title: 'GitHub',
path: 'https://github.com/antvis/Dipper',
},
],
themeConfig: {
carrier: 'Dipper',
},
hash: true,
// 同步 gh-page CNAME 文件
copy: isProduction ? ['docs/CNAME'] : [],
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
antd: 'window.antd',
lodash: '_',
},
links: ['https://gw.alipayobjects.com/os/lib/antd/4.16.13/dist/antd.css'],
scripts: [
'https://gw.alipayobjects.com/os/lib/react/17.0.1/umd/react.development.js',
'https://gw.alipayobjects.com/os/lib/react-dom/17.0.1/umd/react-dom.development.js',
// 'https://gw.alipayobjects.com/os/lib/antd/4.16.13/dist/antd-with-locales.js',
'https://gw.alipayobjects.com/os/lib/antd/4.19.4/dist/antd.js',
/** lodash */
'https://gw.alipayobjects.com/os/lib/lodash/4.17.20/lodash.min.js',
],
// more config: https://d.umijs.org/config
});