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

chore(cli): add msg

上级 90391e7b
...@@ -175,11 +175,14 @@ if (process.env.UNI_USING_COMPONENTS) { // 是否启用分包优化 ...@@ -175,11 +175,14 @@ if (process.env.UNI_USING_COMPONENTS) { // 是否启用分包优化
const warningMsg = const warningMsg =
usingComponentsAbsent usingComponentsAbsent
? `该应用之前可能是非自定义组件模式,目前以自定义组件模式运行。非自定义组件将于2019年11月1日起停止支持。详见:https://ask.dcloud.net.cn/article/36385` ? `该应用之前可能是非自定义组件模式,目前以自定义组件模式运行。非自定义组件将于2019年11月1日起停止支持。详见:https://ask.dcloud.net.cn/article/36385`
: `uni-app将于2019年11月1日起停止支持非自定义组件模式 [详情](https://ask.dcloud.net.cn/article/36385)` : `uni-app将于2019年11月1日起停止支持非自定义组件模式 [详情](https://ask.dcloud.net.cn/article/36385)`
const needWarning = !platformOptions.usingComponents || usingComponentsAbsent const needWarning = !platformOptions.usingComponents || usingComponentsAbsent
// 输出编译器版本等信息 // 输出编译器版本等信息
if (process.env.UNI_PLATFORM !== 'h5') { if (process.env.UNI_USING_NATIVE) {
console.log('当前nvue编译模式:' + (isNVueCompiler ? 'uni-app' : 'weex') +
' 。编译模式差异见:https://ask.dcloud.net.cn/article/36074')
} else if (process.env.UNI_PLATFORM !== 'h5') {
try { try {
const modeText = '当前项目编译模式:' + const modeText = '当前项目编译模式:' +
(platformOptions.usingComponents ? '自定义组件模式' : '非自定义组件模式') + (platformOptions.usingComponents ? '自定义组件模式' : '非自定义组件模式') +
......
...@@ -64,7 +64,7 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -64,7 +64,7 @@ module.exports = function (pagesJson, userManifestJson) {
navigationBarTextStyle = 'white', navigationBarTextStyle = 'white',
navigationBarBackgroundColor = '#000000' navigationBarBackgroundColor = '#000000'
} = appJson['window'] || {} } = appJson['window'] || {}
const TABBAR_HEIGHT = 50 const TABBAR_HEIGHT = 50
let manifestJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, './manifest.json'), 'utf8')) let manifestJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, './manifest.json'), 'utf8'))
...@@ -379,7 +379,7 @@ module.exports = function (pagesJson, userManifestJson) { ...@@ -379,7 +379,7 @@ module.exports = function (pagesJson, userManifestJson) {
}) })
delete appJson.nvue delete appJson.nvue
delete manifestJson.plus.launchwebview.kernel delete manifestJson.plus.launchwebview.kernel
manifestJson.launch_path = '' manifestJson.launch_path = ''
Object.assign(manifestJson.plus.launchwebview, { Object.assign(manifestJson.plus.launchwebview, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册