Skip to content

Commit

Permalink
New: Added a noparse build for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 23, 2016
1 parent deb2e82 commit 4424713
Show file tree
Hide file tree
Showing 22 changed files with 6,361 additions and 72 deletions.
33 changes: 33 additions & 0 deletions dist/noparse/README.md
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>
```
Loading

0 comments on commit 4424713

Please sign in to comment.