提交 fc6be3cb 编写于 作者: fxy060608's avatar fxy060608

feat(cli): Compatible with subpackages

上级 d7797da8
......@@ -68,6 +68,11 @@ function processPagesJson (pagesJson, loader = {
console.error(`${pagesJsonJsFileName} 必须导出 function`)
}
}
// 将 subpackages 转换成 subPackages
if (pagesJson.subpackages && !pagesJson.subPackages) {
pagesJson.subPackages = pagesJson.subpackages
delete pagesJson.subpackages
}
let uniNVueEntryPagePath
if (pagesJson.pages && pagesJson.pages.length) { // 如果首页是 nvue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册