File tree Expand file tree Collapse file tree 2 files changed +83
-2
lines changed
Expand file tree Collapse file tree 2 files changed +83
-2
lines changed Original file line number Diff line number Diff line change 8787* .sln
8888* .sw *
8989
90-
91- /micro-app.config.js
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = {
4+ name : '@micro-app/demo' ,
5+ description : '' ,
6+ version : '0.0.1' ,
7+ type : '' , // types 类型
8+ webpack : { // webpack 配置 (只有自己使用)
9+ // output: {
10+ // path: path.resolve(__dirname, 'public'),
11+ // publicPath: '/public/',
12+ // },
13+ } ,
14+
15+ entry : {
16+ main : './test/index.js' ,
17+ } ,
18+
19+ htmls : [
20+ {
21+ template : './test/index.js' ,
22+ } ,
23+ ] ,
24+
25+ // staticPath: '',
26+
27+ // dlls: [
28+ // {
29+ // context: __dirname,
30+ // },
31+ // ],
32+
33+ alias : { // 前端
34+ api : 'abc' ,
35+ config : {
36+ link : 'abc' ,
37+ description : '配置' ,
38+ } ,
39+ service : {
40+ link : 'abc' ,
41+ description : '接口' ,
42+ type : 'server' ,
43+ } ,
44+ } ,
45+
46+ strict : true ,
47+
48+ micros : [ 'test' ] , // 被注册的容器
49+ // micros$$test: { // 单独配置
50+ // disabled: true, // 禁用入口
51+ // link: '', // 本地路径, 进行本地开发使用的软链接.
52+ // },
53+
54+ // 服务配置
55+ server : {
56+ entry : '' , // 服务端入口
57+ port : 8088 , // 服务端口号
58+ contentBase : 'public' , // 静态文件地址
59+ options : {
60+ // 服务端回调参数
61+ } ,
62+ } ,
63+
64+ plugins : [
65+ [ {
66+ id : 'test' ,
67+ description : '这是test' ,
68+ link : __dirname + '/test/testPlugin' ,
69+ } , {
70+ a : 1 ,
71+ } ] ,
72+ ] ,
73+
74+ // deploy: {
75+ // git: 'git+ssh://[email protected] ', 76+ // branch: 'test',
77+ // // branch: {
78+ // // name: 'develop',
79+ // // extends: true,
80+ // // },
81+ // message: '', // 提交 message 中增加内容
82+ // },
83+ } ;
You can’t perform that action at this time.
0 commit comments