Taro: 第三方开发平台配置文件ext.json需要复制到dist目录中

Created on 26 Jul 2018  ·  3Comments  ·  Source: NervJS/taro

问题描述
在开发第三方平台小程序时,需要在根目录配置ext.json。
目前只能在dist目录直接创建ext.json才能生效。
但是每次npm run dev都会删除dist目录,所以希望能支持从项目根目录或者src某处同步过去。

相关腾讯文档

Most helpful comment

现在提供了 copy 配置,可以将文件 copy 至 dist 目录
https://nervjs.github.io/taro/config-detail.html#defineConstants

All 3 comments

现在提供了 copy 配置,可以将文件 copy 至 dist 目录
https://nervjs.github.io/taro/config-detail.html#defineConstants

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fxy5869571 picture fxy5869571  ·  3Comments

leafchao picture leafchao  ·  3Comments

aiewing picture aiewing  ·  3Comments

zhuxianguo picture zhuxianguo  ·  3Comments

ruixiu picture ruixiu  ·  3Comments