-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
66 lines (63 loc) · 2.25 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
54
55
56
57
58
59
60
61
62
63
64
65
import { defineConfig } from '@umijs/max';
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: {
title: 'AntdProLowCode',
},
routes: [
{
path: '/',
redirect: '/lowcode',
},
{
name: '预览',
path: '/preview',
component: './Preview',
},
{
name: '低代码编辑',
path: '/lowcode',
component: './Lowcode',
},
],
npmClient: 'npm',
styles: [
'https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css',
'https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css',
'https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.10/dist/css/engine-core.css',
'https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.3/dist/css/engine-ext.css',
],
headScripts: [
'https://g.alicdn.com/code/lib/react/18.2.0/umd/react.production.min.js',
'https://g.alicdn.com/code/lib/react-dom/18.2.0/umd/react-dom.production.min.js',
'https://g.alicdn.com/code/lib/prop-types/15.8.1/prop-types.js',
'https://g.alicdn.com/platform/c/react15-polyfill/0.0.1/dist/index.js',
'https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js',
'https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js',
'https://g.alicdn.com/code/lib/alifd__next/1.25.44/next.min.js',
{
crossorigin: "anonymous",
src: 'https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.10/dist/js/engine-core.js',
},{
crossorigin: "anonymous",
src: 'https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.3/dist/js/engine-ext.js',
},
],
externals: {
"react": "var window.React",
"react-dom": "var window.ReactDOM",
"prop-types": "var window.PropTypes",
"@alilc/lowcode-engine": "var window.AliLowCodeEngine",
"@alilc/lowcode-editor-core": "var window.AliLowCodeEngine.common.editorCabin",
"@alilc/lowcode-editor-skeleton": "var window.AliLowCodeEngine.common.skeletonCabin",
"@alilc/lowcode-designer": "var window.AliLowCodeEngine.common.designerCabin",
"@alilc/lowcode-engine-ext": "var window.AliLowCodeEngineExt",
"@ali/lowcode-engine": "var window.AliLowCodeEngine",
"moment": "var window.moment",
"lodash": "var window._"
},
});