mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 11:02:11 +03:00
update comment to be more descriptive
This commit is contained in:
parent
79a49b2a56
commit
6a6be7ef88
@ -2,7 +2,10 @@
|
||||
|
||||
set -ex
|
||||
|
||||
# This is the same as the directory above this.
|
||||
# This is the same build.sh, later we are going to use the
|
||||
# fetch flag to avoid including the wasm module as a string
|
||||
# of base64, instead using the js `fetch` function
|
||||
#to request the module from the server.
|
||||
cargo +nightly build --target wasm32-unknown-unknown
|
||||
cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
||||
../../../target/wasm32-unknown-unknown/debug/hello_world.wasm --out-dir .
|
||||
@ -12,7 +15,7 @@ cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
||||
cargo +nightly run -p wasm-bindgen-cli --bin wasm2es6js -- \
|
||||
--fetch ./hello_world_bg.wasm -o hello_world_bg.js hello_world_bg.wasm
|
||||
|
||||
# And like the directory above this, from here it's the same.
|
||||
# Install the npm items as usual.
|
||||
npm install
|
||||
|
||||
# since we kept the same name for the .js module, we need
|
||||
|
Loading…
Reference in New Issue
Block a user