mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-12-13 10:28:10 -05:00
Update build.sh
Does in fact work with `--mode=production`
This commit is contained in:
parent
d6c662ac80
commit
63ac0db821
@ -23,5 +23,5 @@ cp "$DIR/WasmMainTemplatePlugin.patched.js" "$DIR/node_modules/webpack/lib/wasm/
|
||||
|
||||
cargo +nightly build --target=wasm32-unknown-unknown && \
|
||||
wasm-bindgen "$WASM_DIR/debug/$WASM_NAME.wasm" --out-dir "$APP_DIR" --no-typescript && \
|
||||
# Still doesn't work with mode=production, not sure why
|
||||
# --mode=production requires https://github.com/webpack/webpack/pull/7732
|
||||
"$DIR/node_modules/webpack-cli/bin/cli.js" --mode=production "$APP_DIR/app_loader.js" -o "$APP_DIR/bundle.js"
|
||||
|
Loading…
Reference in New Issue
Block a user