Created
April 17, 2019 05:20
-
-
Save r6m/4b164694836a3102b577be8896748f5f to your computer and use it in GitHub Desktop.
generate grpc-web
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install grpc-web | |
# generate js | |
protoc --js_out=import_style=commonjs:client api/api.proto | |
# generate grpc | |
protoc --grpc-web_out=import_style=commonjs,mode=grpcweb:client api/api.proto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment