forked from umijs/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
39 lines (38 loc) · 812 Bytes
/
.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
import { defineConfig } from 'umi';
export default defineConfig({
presets: [require.resolve('../packages/preset-react/lib')],
// plugins: [require.resolve('../packages/plugin-webpack-5/lib')],
routes: [
{
name: 'model 测试',
path: '/plugin-model',
component: './plugin-model',
icon: 'smile',
},
{
name: 'initial-state 测试',
path: '/plugin-initial-state',
component: './plugin-initial-state',
icon: 'star',
},
{
name: 'utils 测试',
path: '/utils',
component: './utils',
},
{
name: 'request 测试',
path: '/request',
component: './request',
},
{
name: '首页',
path: '/',
component: './index',
},
],
locale: {},
layout: {
name: 'UMI 3',
},
});