Skip to content

Commit

Permalink
added wasm-strip to build-web.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhan45 committed Apr 11, 2021
1 parent e4e6aa1 commit 2d8e916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

cargo build --release --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/release/simple_electronics.wasm docs

# https://github.com/WebAssembly/wabt
wasm-strip docs/simple_electronics.wasm
cp -r resources docs/

if [ "$1" = "serve" ]
Expand Down
Binary file modified docs/simple_electronics.wasm
Binary file not shown.

0 comments on commit 2d8e916

Please sign in to comment.