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

通过插件修改 config 打包配置和 app.config 全局配置 #15430

Open
bluescurry opened this issue Apr 1, 2024 · 2 comments
Open

通过插件修改 config 打包配置和 app.config 全局配置 #15430

bluescurry opened this issue Apr 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bluescurry
Copy link
Contributor

这个特性解决了什么问题?

目前在抽离项目中路由模块,我想通过 Taro 插件根据用户传入的路由配置,实现:

  1. 自动生成 config 打包配置中的 customRoutes
  2. 自动生成 app.config.ts 中的 pages 和 subPackages
    请问目前插件能实现上述诉求吗

这个 API 长什么样?

期望 Taro 插件可以支持上述能力

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Apr 1, 2024
@luckyadam
Copy link
Member

https://github.com/NervJS/taro/pull/15397/files#diff-e2ab0ae2c7d49d0a9b720a6016b2e72644d7f5c26b194c17b46e012247d6c1b4R142

这个 pr 增加了一个 modifyAppConfig 的钩子,是够可以满足诉求?

This was referenced Apr 6, 2024
@bluescurry
Copy link
Contributor Author

https://github.com/NervJS/taro/pull/15397/files#diff-e2ab0ae2c7d49d0a9b720a6016b2e72644d7f5c26b194c17b46e012247d6c1b4R142

这个 pr 增加了一个 modifyAppConfig 的钩子,是够可以满足诉求?

可以解决第 2 点~~~ 第 1 点看起来还不行呢,这个可以实现吗

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

No branches or pull requests

2 participants