881033c5c7
- The `web` feature was previously exposed by the example crate. This isn't really necessary. - See #276 for discussion
12 lines
464 B
Makefile
12 lines
464 B
Makefile
serve package: (build package)
|
|
miniserve --index index.html ./target/{{package}}/
|
|
|
|
build package:
|
|
mkdir -p ./target/{{package}}/
|
|
cp ./examples/{{package}}/index.html ./target/{{package}}/
|
|
cargo build --release --package {{package}} --target wasm32-unknown-unknown
|
|
wasm-bindgen --target web --no-typescript --out-dir ./target/{{package}}/ ./target/wasm32-unknown-unknown/release/{{package}}.wasm
|
|
|
|
clean package:
|
|
rm -rf ./target/{{package}}/
|