Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Sep 16, 2019
2 parents 871115e + 14c8635 commit 65f3be4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/vue-cli-plugin-uni/lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ if (process.env.UNI_USING_COMPONENTS) { // 是否启用分包优化
}
}
}


const warningMsg = `uni-app将于2019年11月1日起停止支持非自定义组件模式 [详情](https://ask.dcloud.net.cn/article/36385)`
// 输出编译器版本等信息
if (process.env.UNI_PLATFORM !== 'h5') {
try {
Expand All @@ -189,14 +190,22 @@ if (process.env.UNI_PLATFORM !== 'h5') {
}).length) {
console.log(info)
console.log(modeText)

if (!platformOptions.usingComponents) {
console.log(warningMsg)
}
console.log('当前nvue编译模式:' + (isNVueCompiler ? 'uni-app' : 'weex') +
' 。编译模式差异见:https://ask.dcloud.net.cn/article/36074')
} else {
console.log(info + ',' + modeText)
if (!platformOptions.usingComponents) {
console.log(warningMsg)
}
}
} else {
console.log(modeText)
console.log(modeText)
if (!platformOptions.usingComponents) {
console.log(warningMsg)
}
}
} catch (e) {}
}
Expand Down

0 comments on commit 65f3be4

Please sign in to comment.