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

chore(cli): add error log when pages empty

上级 9e8aeadb
......@@ -62,6 +62,11 @@ module.exports = function (content, map) {
}
})
if (!pagesJson.pages || pagesJson.pages.length === 0) {
console.error('pages.json中的pages不能为空')
process.exit(0)
}
if (global.uniPlugin.defaultTheme) {
pagesJson = parseTheme(pagesJson)
this.addDependency(path.resolve(process.env.UNI_INPUT_DIR, 'theme.json'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册