Browse Source

Update build.sh

Does in fact work with `--mode=production`
bspeice 10 months ago
parent
commit
63ac0db821
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      percy_patched_webpack/build.sh

+ 1
- 1
percy_patched_webpack/build.sh View File

@@ -23,5 +23,5 @@ cp "$DIR/WasmMainTemplatePlugin.patched.js" "$DIR/node_modules/webpack/lib/wasm/
23 23
 
24 24
 cargo +nightly build --target=wasm32-unknown-unknown && \
25 25
     wasm-bindgen "$WASM_DIR/debug/$WASM_NAME.wasm" --out-dir "$APP_DIR" --no-typescript && \
26
-    # Still doesn't work with mode=production, not sure why
26
+    # --mode=production requires https://github.com/webpack/webpack/pull/7732
27 27
     "$DIR/node_modules/webpack-cli/bin/cli.js" --mode=production "$APP_DIR/app_loader.js" -o "$APP_DIR/bundle.js"

Loading…
Cancel
Save