Skip to content

Wasm-Gzip v1.0

Compare
Choose a tag to compare
@ColinTimBarndt ColinTimBarndt released this 05 Feb 20:24

Release Notes

This build includes the source code for this version and a release that can be imported as an ES6 module.

Build it yourself

Windows users can run the Batchfile build.bat. For other systems, use

  1. wasm-pack build --target web
  2. (Optional) minify the wasm: wasm-snip --snip-rust-panicking-code --snip-rust-fmt-code -o ./pkg/wasm_gzip_bg.wasm ./pkg/wasm_gzip_bg.wasm
  3. (Optional) delete the generated .gitignore file in ./pkg if you want to use this project with git.
  4. (Optional) minify the file wasm_gzip.js in ./pkg. For this release, terser was used: npx terser --compress --mangle -o ./wasm_gzip.js -- ./wasm_gzip.js