我按照官网 《CLI 原生App-本地打包(生成本地打包App资源) 》 CLI 原生App-本地打包(生成本地打包App资源) 打包资源。
打包命令为:cli publish --platform APP --type appResource --project navi-android
在遇到nuve不支持的样式时会抛出ERROR并终止编译,但是在Hubilderx的 发行->App-Android/IOS-本地打包->生成本地打包资源 虽然抛出了ERROR,但是却没有终止编译,想请问一下这里是否有指令可以忽略这个ERROR,继续编译。
cli方式的日志,编译到有ERROR的nvue文件就会终止编译:
11:45:21.802 正在编译中...
11:45:44.702 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
11:45:44.708 ERROR: Selector uni-modal .uni-modal
is not supported. Weex only support classname selector at pages/together-fun/play/play.nvue:21
Hbuilderx的方式日志,虽然会打印ERROR,但是还是会继续编译完成:
[HBuilder] 13:12:57.833 4.36
[HBuilder] 13:12:58.493 正在编译中...
[HBuilder] 13:13:27.281 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
[HBuilder] 13:13:27.282 ERROR: Selector uni-modal .uni-modal
is not supported. Weex only support classname selector at App.vue:21
[HBuilder] 13:13:27.282 ERROR: Selector uni-modal .uni-modal .uni-modal__hd .uni-modal__title
is not supported. Weex only support classname selector at App.vue:24
[HBuilder] 13:13:27.282 ERROR: Selector uni-modal .uni-modal .uni-modal__ft
is not supported. Weex only support classname selector at App.vue:28
[HBuilder] 13:13:27.282 ERROR: Selector uni-modal .uni-modal .uni-modal__bd
is not supported. Weex only support classname selector at App.vue:32
[HBuilder] 13:13:27.283 ERROR: Selector /deep/ .u-button--primary
is not supported. Weex only support classname selector at App.vue:36
[HBuilder] 13:13:27.283 ERROR: property value none
is not valid for border-color
at App.vue:38
[HBuilder] 13:13:27.283 ERROR: Selector /deep/.u-tabs__wrapper__nav__line
is not supported. Weex only support classname selector at App.vue:40
[HBuilder] 13:13:27.283 ERROR: Selector :export
is not supported. Weex only support classname selector at App.vue:44
[HBuilder] 13:13:27.284 WARNING: uni-color-primary
is not a standard property name (may not be supported) at App.vue:45
0 个回复