Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
deepcoldy opened this issue Jul 26, 2018 · 3 comments
Closed

Comments

@deepcoldy
Copy link

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

相关腾讯文档

@luckyadam
Copy link
Member

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

@jinyindu
Copy link

https://nervjs.github.io/taro/config-detail.html#defineConstants 打开是404

@foreverpw
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants