size optimizations

This commit is contained in:
Simon Gardling
2022-02-24 08:42:29 -05:00
parent 80bc678476
commit 5b702ac3fe
4 changed files with 8 additions and 4 deletions

5
build.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -e
wasm-pack build --target web --release --no-typescript
wasm-opt -Oz -o pkg/integral_site_2.wasm pkg/integral_site_bg.wasm
mv pkg/integral_site_bg_2.wasm pkg/integral_site_bg.wasm