remove the need for .cargo config file
This commit is contained in:
parent
1b2b330645
commit
dd97d3ca03
|
@ -1,5 +0,0 @@
|
|||
[build]
|
||||
target = "wasm32-unknown-unknown"
|
||||
|
||||
# [profile.release]
|
||||
# opt-level = "s"
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue