doc: Be more explicit with available wasm-opt flags

master
Arhan Chaudhary 8 months ago
parent 62ab39cf82
commit 3343b53440
No known key found for this signature in database
GPG Key ID: 2EE945736DB18AD5
  1. 4
      docs/src/cargo-toml-configuration.md

@ -18,6 +18,10 @@ The available configuration options and their default values are shown below:
# be set to an array of strings which are explicit arguments to pass to
# `wasm-opt`. For example `['-Os']` would optimize for size while `['-O4']`
# would execute very expensive optimizations passes
#
# In most cases, the `-O[X]` flag is enough. However, if you require extreme
# optimizations, see the full list of `wasm-opt` optimization flags
# https://github.com/WebAssembly/binaryen/blob/version_111/test/lit/help/wasm-opt.test
wasm-opt = ['-O']
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]

Loading…
Cancel
Save