Skip to content

Commit d6b5b80

Browse files
committed
fix: fix root path
1 parent 6609c8e commit d6b5b80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

microapp/config/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
'use strict';
22

3+
const path = require('path');
4+
const ROOT = path.resolve(__dirname, '../../');
5+
36
const config = {};
47

58
// 兼容两种启动方式
69
if (!process.env.MICRO_APP_VUEPRESS_DIRECT_RUNNING) {
710
config.plugins = [
8-
__dirname,
11+
ROOT,
912
'@micro-app/plugin-deploy', // test
1013
];
1114
}

0 commit comments

Comments
 (0)