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

chore: add nvue native tips

上级 aa0cec70
......@@ -10,6 +10,12 @@ export function initNVueEnv() {
const manifestJson = parseManifestJsonOnce(process.env.UNI_INPUT_DIR)
if (getAppRenderer(manifestJson) === 'native') {
process.env.UNI_RENDERER = 'native'
return (
console.error(
`当前项目启用了纯原生渲染,请在manifest.json中切换vue版本为2之后,再重新运行。`
),
process.exit(1)
)
}
const nvueCompiler = getNVueCompiler(manifestJson)
if (nvueCompiler === 'uni-app') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册