-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.lowcode.js
38 lines (36 loc) · 1.31 KB
/
build.lowcode.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
const { name, version } = require('./package.json');
const { library } = require('./build.json');
const baseRenderUrl =
process && process.argv && process.argv.includes('start')
? '.'
: `https://unpkg.com/${name}@${version}`;
module.exports = {
alias: {
'@': './src',
},
plugins: [
[
'@alifd/build-plugin-lowcode',
{
library,
staticResources: {
engineCoreCssUrl:
'https://alifd.alicdn.com/npm/@alilc/[email protected]/dist/css/engine-core.css',
engineExtCssUrl:
'https://alifd.alicdn.com/npm/@alilc/[email protected]/dist/css/engine-ext.css',
engineCoreJsUrl:
'https://alifd.alicdn.com/npm/@alilc/[email protected]/dist/js/engine-core.js',
engineExtJsUrl:
'https://alifd.alicdn.com/npm/@alilc/[email protected]/dist/js/engine-ext.js',
},
extraAssets: [
'https://alifd.alicdn.com/npm/@alilc/[email protected]/dist/assets.json',
'https://g.alicdn.com/code/npm/@alife/fusion-ui/0.1.7/build/lowcode/assets-prod.json',
],
renderUrls: [`${baseRenderUrl}/dist/${library}.js`, `${baseRenderUrl}/dist/${library}.css`],
noParse: true,
singleComponent: true,
},
],
],
};