This will be a WASM webpage generator that dynamically constructs and SVG showing a Southern Hemisphere based circular seasonal calendar.
This is the tool that the Rust WebAssembly Working Group wants you to use for
your workflow. It used to be mostly about deploying to npm
but it deploys
everywhere now.
- Run
wasm-pack build --target web
to build
A tool in the binaryen
system package, this shrinks .wasm files
$ wasm-opt -Os -o output.wasm input.wasm
Numerous javascript minimization programs have been released in the past including yui-compressor, jsmin, minify, uglifyjs (1,2,and3), uglify-es, and terser. Terser is a fork of uglify-es that handles the newest ECMA versions of javascript, is maintained, and gives the best compression ratio (I ran tests). It runs on node; install globally with
$ npm install terser -g
Run make
and then make deploy
.
Output will be in deploy/
folder, ready to serve from a webserver or via
a file:///
URL.
WASM related libraries used:
- wasm-bindgen
- web-sys
See also: