remove the need for .cargo config file

This commit is contained in:
milo 2024-03-09 17:49:57 -05:00
parent 1b2b330645
commit dd97d3ca03
2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +0,0 @@
[build]
target = "wasm32-unknown-unknown"
# [profile.release]
# opt-level = "s"

View File

@ -4,7 +4,7 @@
"description": "Blockfish engine webworker",
"main": "blockfish.js",
"scripts": {
"prebuild": "cargo build --release && wasm-bindgen target/wasm32-unknown-unknown/release/fish_webworker.wasm --out-dir build --target web --no-typescript",
"prebuild": "cargo build --release --target wasm32-unknown-unknown && wasm-bindgen target/wasm32-unknown-unknown/release/fish_webworker.wasm --out-dir build --target web --no-typescript",
"build": "npx esbuild src/worker.js --bundle --minify --outdir=build",
"postbuild": "cp build/fish_webworker_bg.wasm ./blockfish.wasm && cp build/worker.js ./blockfish.js"
},