-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Added a noparse build for completeness
- Loading branch information
Showing
22 changed files
with
6,361 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
This folder contains prebuilt browser versions of [protobuf.js](https://github.com/dcodeIO/protobuf.js) without the .proto parser. When sending pull requests, it is not required to update these. | ||
|
||
**NOTE:** This slightly smaller version of the full library can be used as a drop-in replacment where .proto parsing is not required, i.e. when only working with JSON files generated by pbjs as recommended for production. | ||
|
||
Prebuilt files are in source control to enable pain-free frontend respectively CDN usage: | ||
|
||
CDN usage | ||
--------- | ||
|
||
Development: | ||
``` | ||
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.X.X/dist/noparse/protobuf.js"></script> | ||
``` | ||
|
||
Production: | ||
``` | ||
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.X.X/dist/noparse/protobuf.min.js"></script> | ||
``` | ||
|
||
**NOTE:** Remember to replace the version tag with the exact [release](https://github.com/dcodeIO/protobuf.js/tags) your project depends upon. | ||
|
||
Frontend usage | ||
-------------- | ||
|
||
Development: | ||
``` | ||
<script src="node_modules/protobufjs/dist/noparse/protobuf.js"></script> | ||
``` | ||
|
||
Production: | ||
``` | ||
<script src="node_modules/protobufjs/dist/noparse/protobuf.min.js"></script> | ||
``` |
Oops, something went wrong.