Web bundle size optimization / wasm build best practices #732
Labels
documentation
Improvements or additions to documentation
web
relating to the web renderer for dioxus
According to the readme:
I have not been able to find any documentation on how to achieve such a small bundle size.
My Results
I've written a simple hello world which compiles with
trunk build --release
,lto = true
, andopt-level="z"
down to 275 KB:This is 4 times the size of the 65KB Readme bundle size. My build size also grows quite quickly to 600KB for a small single page app mockup with just a few simple pages, a router and without any IO.
What best practices are the Dioxus devs applying to get a 64KB build size?
The text was updated successfully, but these errors were encountered: