www: update README to remove wasm-pack; use cargo web start
wasm-pack is more broken, see https://github.com/iceiix/stevenarella/issues/171#issuecomment-581151711 cargo web start is still broken (#171) but less so
This commit is contained in:
parent
dece047cd7
commit
472208cc8c
|
@ -7,15 +7,7 @@ for progress see: [https://github.com/iceiix/stevenarella/issues/171](https://gi
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
To build for wasm32-unknown-unknown, run in the top-level directory (not www):
|
To build for wasm32-unknown-unknown, run:
|
||||||
|
|
||||||
```sh
|
|
||||||
rustup target add wasm32-unknown-unknown
|
|
||||||
cargo install wasm-bindgen-cli
|
|
||||||
wasm-pack build
|
|
||||||
```
|
|
||||||
|
|
||||||
or:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo web start --target wasm32-unknown-unknown
|
cargo web start --target wasm32-unknown-unknown
|
||||||
|
@ -38,7 +30,7 @@ open http://localhost:8080/
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
Based on `[rustwasm/create-wasm-app](https://github.com/rustwasm/create-wasm-app)`:
|
Based on [rustwasm/create-wasm-app](https://github.com/rustwasm/create-wasm-app):
|
||||||
|
|
||||||
> An `npm init` template for kick starting a project that uses NPM packages
|
> An `npm init` template for kick starting a project that uses NPM packages
|
||||||
> containing Rust-generated WebAssembly and bundles them with Webpack.
|
> containing Rust-generated WebAssembly and bundles them with Webpack.
|
||||||
|
|
Loading…
Reference in New Issue