-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
62 lines (60 loc) · 1.05 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
import { resolve } from 'path'
import { defineConfig } from 'umi'
import { SystemConf } from './config/system.conf'
export default defineConfig({
base: '/',
hash: true,
// ssr: {
// forceInitial: false,
// devServerRender: true,
// mode: 'string'
// },
ssr: false,
crossorigin: true,
title: false,
publicPath: '/',
fastRefresh: {},
webpack5: {},
targets: {
ie: 11
},
devServer: {
port: '3000',
host: 'localhost',
https: false
},
dva: {
immer: false,
hmr: true
},
theme: {
...SystemConf.antd.theme
},
nodeModulesTransform: {
type: 'none'
},
alias: {
'@components': resolve(__dirname, './components')
},
routes: [
{
path: '/',
component: '@/pages/index'
}
],
extraBabelPlugins: [
[
'styled-components',
{
namespace: 'headless',
ssr: true,
displayName: false,
fileName: false,
minify: true,
pure: true,
transpileTemplateLiterals: true
}
]
],
chainWebpack: (config) => {}
})