Skip to content

Support customizing the methods included in messages in CLI #2043

Description

@jiaojiaodubai

I am writing a browser extension script to parse the data returned the server.

In my application scenario, for those returned masses, I only need to use decode and toObject, but the current command line does not support selecting the required methods. In order to minimize the script size, I have to manually delete those redundant methods.

I would like to have some thing like:

pbjs -t static -toolsets=decode,toObject -o compiled.js file1.proto

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions