From 63ac0db8217b511c9c4ded9d3090ca63d207ae0a Mon Sep 17 00:00:00 2001 From: bspeice Date: Wed, 12 Sep 2018 22:40:19 -0400 Subject: [PATCH] Update build.sh Does in fact work with `--mode=production` --- percy_patched_webpack/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/percy_patched_webpack/build.sh b/percy_patched_webpack/build.sh index 62df934..4941037 100755 --- a/percy_patched_webpack/build.sh +++ b/percy_patched_webpack/build.sh @@ -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"