-
Notifications
You must be signed in to change notification settings - Fork 6
/
micro-app.config.js
52 lines (46 loc) · 1.7 KB
/
micro-app.config.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
const path = require('path');
module.exports = {
version: '0.0.1',
type: '', // types 类型
entry: {
index: [ './src/kubecube/index.js' ],
},
htmls: [{
filename: 'index.html',
title: 'Kubecube',
hash: true,
template: './src/template/index.html',
}],
staticPath: path.resolve(__dirname, 'src/client/static/'),
alias: { // 前后端
library: {
link: path.resolve(__dirname, 'src/client/components/'),
description: '公共依赖组件',
},
components: {
link: path.resolve(__dirname, 'src/client/components/'),
description: '公共依赖组件',
},
elComponent: {
link: path.resolve(__dirname, 'src/client/elComponent/'),
description: 'el扩展组件',
},
base: path.resolve(__dirname, 'src/client/base/'),
mixins: path.resolve(__dirname, 'src/client/base/mixins/'),
filters: path.resolve(__dirname, 'src/client/filters/'),
directives: path.resolve(__dirname, 'src/client/directives/'),
utils: path.resolve(__dirname, 'src/client/utils/'),
assets: path.resolve(__dirname, 'src/client/assets/'),
icons: path.resolve(__dirname, 'src/client/assets/icons/'),
static: path.resolve(__dirname, 'src/client/static/'),
views: path.resolve(__dirname, 'src/client/views/'),
services: path.resolve(__dirname, 'src/client/services/'),
kubecube: path.resolve(__dirname, 'src/kubecube/'),
// jchart: path.resolve(__dirname, 'src/JChart/'),
},
plugins: require('./plugins'),
// 以下为开发测试功能
devServer: {
port: '4330',
},
};