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

Use wasm-opt when compiling for web

This commit is contained in:
Emil Ernerfeldt
2021-04-01 23:07:43 +02:00
parent fe0d31204e
commit facb01a7c2
2 changed files with 7 additions and 2 deletions

View File

@@ -22,3 +22,5 @@ egui_web = { path = 'egui_web' }
# opt-level = 1 # very slow and big wasm. Don't do this.
opt-level = 2 # fast and small wasm, basically same as `opt-level = 's'`
# opt-level = 3 # unecessarily large wasm for no performance gain
# debug = true # include debug symbols, useful when profiling wasm