-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
53 lines (52 loc) · 1.32 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 'umi';
export default defineConfig({
hash: true,
nodeModulesTransform: {
type: 'none',
},
targets: {
ie: 9,
},
antd: false,
base: '/dblz/',
publicPath: '/dblz/',
fastRefresh: {},
locale: {
default: 'zh-CN',
antd: false,
title: false,
baseNavigator: true,
baseSeparator: '-',
},
dynamicImport: {
loading: '@/components/PageLoading/index',
},
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
},
// headScripts: [{ src: '/dblz/swiper.min.js' }],
scripts:
process.env.NODE_ENV === 'development'
? [
'https://gw.alipayobjects.com/os/lib/react/17.0.2/umd/react.development.js',
'https://gw.alipayobjects.com/os/lib/react-dom/17.0.2/umd/react-dom.development.js',
]
: [
'https://gw.alipayobjects.com/os/lib/react/17.0.2/umd/react.production.min.js',
'https://gw.alipayobjects.com/os/lib/react-dom/17.0.2/umd/react-dom.production.min.js',
],
extraPostCSSPlugins: [
require('postcss-import'),
require('tailwindcss')({
config: './tailwind.config.js',
}),
require('postcss-nested'),
require('autoprefixer'),
],
links: [{
rel: 'icon',
href: './favicon.ico'
}],
title: '德必庐州WE”长三角数字经济科创中心'
});