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

修复项目配置页面中,项目配置文件的官方文档链接 #282

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/project-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ title: 项目配置

各类小程序平台均有自己的项目配置文件,例如:

- 微信小程序,[project.config.json](https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html?search-key=%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE)
- 微信小程序,[project.config.json](https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html)
- 百度小程序,[project.swan.json](https://smartprogram.baidu.com/docs/develop/devtools/projectconfig/)
- 抖音小程序,[project.config.json](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/basic-reference/catalog-structure)
- 抖音小程序,[project.config.json](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration/#%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE)
- QQ 小程序,project.config.json
- 支付宝小程序,[mini.project.json](https://opendocs.alipay.com/mini/framework/project)
- 支付宝小程序,[mini.project.json](https://opendocs.alipay.com/mini/03dbc3)
- 京东小程序,暂无发现
- 飞书小程序,[project.config.json](https://open.feishu.cn/document/uYjL24iN/uEzMzUjLxMzM14SMzMTN/gadget-project-configuration?from=taro)
- 飞书小程序,[project.config.json](https://open.feishu.cn/document/tools-and-resources/development-tools/development-of-gadget-in-tools/gadget-project-configuration)

为了能够适配不同小程序平台的配置文件不同的情况,Taro 支持为各个小程序平台添加各自的项目配置文件。

通过 Taro 模板创建的项目都会默认拥有 `project.config.json` 这一项目配置文件,这个文件 **只能用于微信小程序**,若要兼容到其他小程序平台,请按如下对应规则来增加相应平台的配置文件,其配置与各自小程序平台要求的一致:
通过 Taro 模板创建的项目都会默认拥有 `project.config.json` 这一项目配置文件,这个文件**只能用于微信小程序**,若要兼容到其他小程序平台,请按如下对应规则来增加相应平台的配置文件,其配置与各自小程序平台要求的一致:

| 小程序平台 | 添加配置文件 |
| ------------ | ------------------- |
Expand All @@ -26,6 +26,6 @@ title: 项目配置
| 飞书小程序 | project.lark.json |

:::caution 注意
飞书小程序从[插件](https://www.npmjs.com/package/@tarojs/plugin-platform-lark)1.0.2 版本开始,配置文件修改为`project.lark.json`,之前版本为`project.tt.json`。
飞书小程序从[插件](https://www.npmjs.com/package/@tarojs/plugin-platform-lark) 1.0.2 版本开始,配置文件修改为 `project.lark.json`,之前版本为 `project.tt.json`。
推荐升级[飞书插件](https://www.npmjs.com/package/@tarojs/plugin-platform-lark)到最新版,避免使用 Taro 同时开发抖音小程序和飞书小程序配置文件 appId 冲突的问题。
:::