w***@163.com
w***@163.com
  • 发布:2022-03-03 20:34
  • 更新:2022-03-03 20:34
  • 阅读:228

在测试环境下如何使用自定义的条件编译?

分类:uni-app

我按照 https://uniapp.dcloud.io/collocation/package.html 的说明在 package.json 中添加了一个 custom-platform ,使用的 uni-platform 是 mp-weixin ,并设置了自定义条件编译。

在执行 npm run dev:custom custom-platformnpm run build:custom custom-platform 时都是没问题的。

但是我想在 npm run test:mp-weixin 运行测试用例时也使用自定义的条件编译,这个该怎么配置呢?

2022-03-03 20:34 负责人:无 分享
已邀请:

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