⚡️ Configure cargo to Optimize the size of the generated wasm bundle
This commit is contained in:
8
.cargo/config.toml
Normal file
8
.cargo/config.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
debug = false
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
strip = true
|
||||
incremental = false
|
@@ -37,7 +37,7 @@ tracing-web = "0.1.3"
|
||||
tracing-subscriber = "0.3.18"
|
||||
|
||||
[target.'cfg(target_family = "wasm")'.dependencies]
|
||||
web-sys = { version = "0.3.69" }
|
||||
web-sys = "0.3.69"
|
||||
|
||||
[build-dependencies]
|
||||
regex = "1.10.3"
|
||||
|
Reference in New Issue
Block a user