修复因名字导致无法被打包的问题

This commit is contained in:
aixianling
2022-06-30 17:43:12 +08:00
parent 56d6d7e4a3
commit 280a918d8a

View File

@@ -22,7 +22,7 @@ const generateMain = project => {
chalkTag.info(project + '加载业务应用配置...')
Promise.all([
findApp(`src/project/${project}`, file => {
let reg = new RegExp(/.+(App[^\\\/]+)$/)
let reg = new RegExp(/.+[\\\/](App[^\\\/]+)$/)
if (reg.test(file)) {
data[file.replace(reg, '$1')] = file.replace(reg, '$1')
}