-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
38 lines (36 loc) · 1.15 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
import { defineConfig } from 'dumi';
const isProduction = process.env.NODE_ENV === 'production';
export default defineConfig({
title: 'LI-Zelda-Assets',
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',
metas: [],
locales: [['zh-CN', '中文']],
themeConfig: {
carrier: 'LI-Zelda-Assets',
},
hash: true,
devtool: isProduction ? false : 'eval',
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
lodash: '_',
'mapbox-gl': 'window.mapboxgl',
'@turf/turf': 'window.turf',
},
styles: [],
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',
/** lodash */
'https://gw.alipayobjects.com/os/lib/lodash/4.17.20/lodash.min.js',
/** turf */
'https://gw.alipayobjects.com/os/lib/turf/turf/6.5.0/turf.min.js',
/** mapbox */
'https://api.tiles.mapbox.com/mapbox-gl-js/v1.13.2/mapbox-gl.js',
],
});