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

update readme to add pbf-loader (a webpack loader) to require .proto files #75

Merged
merged 1 commit into from
Feb 2, 2017

Conversation

btiwaree
Copy link
Contributor

using pbf-loader, you can require .proto file that returns the compiled module that you can use directly. This would prevent you from requiring:

  • pbf/compile
  • protocol-buffers-schema
  • fs

Instead, you would:

var proto = require('./example.proto');

var Test = proto.Test;

@mourner mourner merged commit bc2da8f into mapbox:master Feb 2, 2017
@mourner
Copy link
Member

mourner commented Feb 2, 2017

Great, thanks for making the module!

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

Successfully merging this pull request may close these issues.

2 participants