Skip to content

Commit 4424713

Browse files
committed
New: Added a noparse build for completeness
1 parent deb2e82 commit 4424713

22 files changed

Lines changed: 6361 additions & 72 deletions

dist/noparse/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
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.
2+
3+
**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.
4+
5+
Prebuilt files are in source control to enable pain-free frontend respectively CDN usage:
6+
7+
CDN usage
8+
---------
9+
10+
Development:
11+
```
12+
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.X.X/dist/noparse/protobuf.js"></script>
13+
```
14+
15+
Production:
16+
```
17+
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.X.X/dist/noparse/protobuf.min.js"></script>
18+
```
19+
20+
**NOTE:** Remember to replace the version tag with the exact [release](https://github.com/dcodeIO/protobuf.js/tags) your project depends upon.
21+
22+
Frontend usage
23+
--------------
24+
25+
Development:
26+
```
27+
<script src="node_modules/protobufjs/dist/noparse/protobuf.js"></script>
28+
```
29+
30+
Production:
31+
```
32+
<script src="node_modules/protobufjs/dist/noparse/protobuf.min.js"></script>
33+
```

0 commit comments

Comments
 (0)