docsite.sh 527 B

1234567891011121314
  1. cargo build --bin wasm-split-cli
  2. CLI=./target/debug/wasm-split-cli
  3. rm -rf docsite/chunks
  4. # Run the wasm-split-cli on the with_body.wasm file
  5. ${CLI} split docsite/input.wasm docsite/bindgen/main_bg.wasm docsite/chunks
  6. # copy the contents of the wasm_bindgen folder to the docsite folder
  7. mv docsite/chunks/main.wasm docsite/chunks/main_bg.wasm # rename the main wasm file
  8. cp -r docsite/bindgen/snippets docsite/chunks/snippets
  9. cp docsite/bindgen/main.js docsite/chunks/main.js
  10. python3 -m http.server 8080 --directory docsite