1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Reduce .wasm size by around 20%

This commit is contained in:
Emil Ernerfeldt
2020-05-20 18:58:21 +02:00
parent 002944b775
commit 3022231e4f
5 changed files with 28 additions and 8 deletions

View File

@@ -6,3 +6,7 @@ members = [
"example_glium",
"example_wasm",
]
[profile.release]
lto = true # very slightly smaller wasm
opt-level = 's' # 10-20% smaller wasm