Skip to content

Commit a11d96c

Browse files
committedAug 27, 2023
perf: Add optimization for Cargo.toml
1 parent 8cb8021 commit a11d96c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ leptos_router = { version = "0.5.0-beta", features = ["csr", "nightly"] }
1010
log = "0.4"
1111
gloo-net = { version = "0.2", features = ["http"] }
1212

13-
1413
# dependecies for client (enable when csr or hydrate set)
1514
wasm-bindgen = { version = "0.2" }
1615
console_log = { version = "1"}
1716
console_error_panic_hook = { version = "0.1"}
1817

18+
[profile.release]
19+
opt-level = "z" # Optimize for size.
20+
lto = true # Link time optimization.
21+
incremental = true
22+
codegen-units = 1 # Allow for maximum size reduction optimizations.
23+
debug-assertions = false

0 commit comments

Comments
 (0)