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

怎么实现,只编译对应坏境的文件 #11444

Closed
shijunti19 opened this issue Mar 14, 2022 · 2 comments
Closed

怎么实现,只编译对应坏境的文件 #11444

shijunti19 opened this issue Mar 14, 2022 · 2 comments

Comments

@shijunti19
Copy link

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

项目文件的大小和多端代码杂乱问题

这个 API 长什么样?

可不可以实现这种需求
index文件夹下index.tt.vue和index.weapp.vue,我按照坏境分类命名文件,然后生成微信小程序就只编译index.weapp.vue,抖音小程序就只编译index.weapp.vue,从而实现对应客户端的文件大大缩小了,目前是一大堆的if判断来实现多端。杂乱无章

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

2 participants