uni-app scss文件的条件编译出错
uni-app scss文件的条件编译出错
| 项目 | 内容 |
|---|---|
| 产品分类 | HbuilderX |
| PC开发环境操作系统 | Windows |
| PC开发环境操作系统版本号 | Windows 10 专业版20H2 |
| HBuilderX版本号 | 3.3.5 |
操作步骤:
scss文件进行条件编译
.color{
/* #ifdef APP-NVUE */
color: red;
/* #endif */
/* #ifndef APP-NVUE */
color: blue;
/* #endif */
}
index.nvue代码
<!-- #ifdef APP-NVUE -->
<text class="color">手机</text>
<!-- #endif -->
<!-- #ifndef APP-NVUE -->
<text class="color">非手机</text>
<!-- #endif -->
<style lang="scss">
[@import](/user/import) '@/static/test.scss';
</style>
更多关于uni-app scss文件的条件编译出错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
参考这个问题https://ask.dcloud.net.cn/question/137228
更多关于uni-app scss文件的条件编译出错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
谢谢
HBuilderX 3.3.6 alpha 已修复此问题
好的

