You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful to include a pre-built standalone decompressor (and compressor?) for use in browsers #2 , as not everyone is familiar with Node.js.
Here is a unbrotli.js and unbrotli.min.js for use in browsers: unbrotli.zip
unbrotli.min.js is a 92Kb download, or 59Kb if Brotli-compressed by your web server. Much of that is the base64-encoded dictionary.
Called with:
unbrotli(buffer, [outSize])
I built it with the following commands (Ubuntu 16.04):
I also got an error in use compress.js. And I built this compress.js with your steps.
Uncaught TypeError: Cannot read property 'slice' of null
at encode.js:11
at Object.<anonymous> (encode.js:11)
at Object../node_modules/brotli/build/encode.js (encode.js:56)
at __webpack_require__ (bootstrap:784)
at fn (bootstrap:150)
at Object../node_modules/brotli/compress.js (compress.js:1)
at __webpack_require__ (bootstrap:784)
at fn (bootstrap:150)
at Object../node_modules/brotli/index.js (index.js:1)
at __webpack_require__ (bootstrap:784)
at fn (bootstrap:150)
at Module../src/actions/appActions.js (role-resource-constants.js:91)
It would be very helpful to include a pre-built standalone decompressor (and compressor?) for use in browsers #2 , as not everyone is familiar with Node.js.
Here is a unbrotli.js and unbrotli.min.js for use in browsers: unbrotli.zip
unbrotli.min.js is a 92Kb download, or 59Kb if Brotli-compressed by your web server. Much of that is the base64-encoded dictionary.
Called with:
I built it with the following commands (Ubuntu 16.04):
(I couldn't get tinyify or uglify to run without errors, so I used a separate Javascript-minifier.)
The text was updated successfully, but these errors were encountered: