Permalink
Browse files

New: Added a noparse build for completeness

  • Loading branch information...
dcodeIO committed Dec 23, 2016
1 parent deb2e82 commit 442471363f99e67fa97044f234a47b3c9b929dfa
@@ -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.

0 comments on commit 4424713

Please sign in to comment.