We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
您好,我尝试了用两种proto协议生成js代码,发现生成的文件中,大部分内容是重复的,差别主要集中在底部函数传入参数这边。能否将公共代码抽离出去,这样在多proto协议的时候能进一步压缩空间。 可能命令行需要支持一次性生成多个js文件,或者提供代码调用方式?
百忙之中打扰您,如有错误请指正~
The text was updated successfully, but these errors were encountered:
正常同一个项目中,所有 .proto 文件都应该是只生成一份 js 代码的,所以不会存在你提到的公共代码重复问题。 具体你可以看看 tests/cli 和 tests/syntax 目录下的测试样例,使用命令行直接将所有 .proto 文件路径传入即可。
tests/cli
tests/syntax
Sorry, something went wrong.
收到,感谢回复~ 我后面尝试一下
刚在readme看到了多文件方式,之前没好好看,打扰您了
试了一下,没有问题,issue我关了,再次感谢大佬~
No branches or pull requests
您好,我尝试了用两种proto协议生成js代码,发现生成的文件中,大部分内容是重复的,差别主要集中在底部函数传入参数这边。能否将公共代码抽离出去,这样在多proto协议的时候能进一步压缩空间。
可能命令行需要支持一次性生成多个js文件,或者提供代码调用方式?
百忙之中打扰您,如有错误请指正~
The text was updated successfully, but these errors were encountered: