Skip to content

Commit 6a590cc

Browse files
committed
feat: 不兼容性配置修改,以 micro-app.config 为主配置源
1 parent c5c3897 commit 6a590cc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-app/vue-cli-plugin-microapp",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "[Plugin] Vue CLI Plugin for MicroApp Projects.",
55
"main": "src/index.js",
66
"scripts": {

src/service/chainConfig.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ module.exports = function chainDefault(api, vueConfig, _mapi) {
1616
'assetsDir',
1717
]
1818
.forEach(key => {
19-
if (!_.isUndefined(options[key])) {
20-
if (_.isUndefined(vueConfig[key])) { // vueConfig 中是否已经存在配置了
21-
vueConfig[key] = options[key];
22-
}
19+
if (!_.isUndefined(options[key])) { // 不兼容性修改
20+
vueConfig[key] = options[key];
2321
}
2422
});
2523

0 commit comments

Comments
 (0)