forked from alibaba/lowcode-materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.lowcode.js
More file actions
85 lines (83 loc) · 2.43 KB
/
build.lowcode.js
File metadata and controls
85 lines (83 loc) · 2.43 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const { name, version } = require("./package.json");
const baseRenderUrl =
process && process.argv && process.argv.includes("start")
? "."
: `https://alifd.alicdn.com/npm/${name}@${version}`;
module.exports = {
sourceMap: false,
alias: {
"@": "./src",
lowcode: "./lowcode",
"@alife/fusion-ui": "./src"
},
plugins: [
[
"@alifd/build-plugin-lowcode",
{
noParse: true,
builtinAssets: [
{
packages: [
{
package: "moment",
version: "2.24.0",
urls: [
"https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"
],
library: "moment"
},
{
package: "lodash",
library: "_",
urls: [
"https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js"
]
},
{
title: "fusion组件库",
package: "@alifd/next",
version: "1.25.23",
urls: [
"https://g.alicdn.com/code/lib/alifd__next/1.25.23/next.min.css",
"https://g.alicdn.com/code/lib/alifd__next/1.25.23/next-with-locales.min.js"
],
library: "Next"
},
{
title: "NextTable",
package: "NextTable",
version: "1.0.1",
urls: [
"https://g.alicdn.com/fusion-platform/pro-table/1.0.1/next-table.js",
"https://g.alicdn.com/fusion-platform/pro-table/1.0.1/next-table.css"
],
library: "NextTable"
}
],
components: []
}
],
baseUrl: {
prod: `https://alifd.alicdn.com/npm/${name}@${version}`,
daily: `https://alifd.alicdn.com/npm/${name}@${version}`
},
renderUrls: [
`${baseRenderUrl}/dist/AlilcLowcodeMaterials.js`,
`${baseRenderUrl}/dist/AlilcLowcodeMaterials.css`
],
categories: ["通用", "导航", "信息输入", "信息展示", "信息反馈"],
engineScope: '@alilc'
}
],
[
"build-plugin-fusion",
{
uniteBaseComponent: "@alifd/next",
importOptions: {
libraryDirectory: "lib"
}
}
],
"./plugin/compatible.build.js"
]
};