a***@qq.com
a***@qq.com
  • 发布:2022-06-23 10:56
  • 更新:2022-06-23 10:59
  • 阅读:605

【报Bug】uni-cli vue3.0 打包,样式会丢失;

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 最新

第三方开发者工具版本号: 1.06.2206090

基础库版本号: 2.23.0

项目创建方式: CLI

CLI版本号: 3.0.0-alpha-3041520220609002

示例代码:

.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}

操作步骤:

yarn build:mp-weixin

预期结果:

.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6);}

实际结果:

.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}

bug描述:

npx degit dcloudio/uni-preset-vue#vite my-vue3-project

用官方的demo克隆项目

yarn build:mp-weixin 打包
打包完成后,所有大括号最后一行样式丢失分号(;)
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}

2022-06-23 10:56 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

丢失封号会造成什么问题吗? 试试在manifest.json中关闭摇树优化

该问题目前已经被锁定, 无法添加新回复