Skip to content

Commit 43e2d68

Browse files
committed
Try wasm build without wasm-opt/gzip/brotli
1 parent 12b4e82 commit 43e2d68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-wasm-examples.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ for EXAMPLE in "${EXAMPLES[@]}"; do
1616

1717
time wasm-bindgen --out-name "$EXAMPLE" --no-typescript --out-dir web-src/wasm/examples --target web "target/wasm32-unknown-unknown/wasm-release/examples/$EXAMPLE.wasm"
1818

19-
time wasm-opt -all -Oz -ol 10 -s 10 -o "web-src/wasm/examples/${EXAMPLE}_bg.wasm" "web-src/wasm/examples/${EXAMPLE}_bg.wasm"
19+
# time wasm-opt -all -Oz -ol 10 -s 10 -o "web-src/wasm/examples/${EXAMPLE}_bg.wasm" "web-src/wasm/examples/${EXAMPLE}_bg.wasm"
2020

21-
time gzip -9 -c "web-src/wasm/examples/${EXAMPLE}_bg.wasm" > "web-src/wasm/examples/${EXAMPLE}_bg.wasm.gz"
21+
# time gzip -9 -c "web-src/wasm/examples/${EXAMPLE}_bg.wasm" > "web-src/wasm/examples/${EXAMPLE}_bg.wasm.gz"
2222

23-
time brotli -9 -c "web-src/wasm/examples/${EXAMPLE}_bg.wasm" > "web-src/wasm/examples/${EXAMPLE}_bg.wasm.b"
23+
# time brotli -9 -c "web-src/wasm/examples/${EXAMPLE}_bg.wasm" > "web-src/wasm/examples/${EXAMPLE}_bg.wasm.b"
2424

2525
cp "crates/bevy_dogoap/examples/$EXAMPLE.rs" "web-src/sources/$EXAMPLE.rs"
2626

0 commit comments

Comments
 (0)