-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmicro-app.config.js
68 lines (55 loc) · 1.25 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
'use strict';
const path = require('path');
const config = {
name: '@micro-app/demo',
description: '',
version: '0.0.1',
type: '', // types 类型
webpack: { }, // webpack 配置 (只有自己使用)
entry: {
main: './simple/client/main.js',
},
htmls: [
{
filename: 'index.html',
hash: true,
chunks: [ 'common', 'main' ],
template: './simple/client/index.html',
},
],
outputDir: path.resolve(__dirname, 'dist'),
// publicPath: '/',
// staticPath: '',
// dlls: [
// {
// context: __dirname,
// },
// ],
// devServer: {},
alias: { // 前端
api: 'abc',
config: {
link: 'abc',
description: '配置',
},
service: {
link: 'abc',
description: '接口',
type: 'server',
},
},
// 服务配置
server: {
entry: '', // 服务端入口
port: 8088, // 服务端口号
options: {
// 服务端回调参数
},
},
};
config.plugins = [
__dirname,
'@micro-app/plugin-compatible',
'@micro-app/plugin-deploy', // test
];
module.exports = config;