DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.3k stars 735 forks source link

When bundling for web, run max optimizations by default #2256

Open jkelleyrtp opened 2 months ago

jkelleyrtp commented 2 months ago

Feature Request

We have a project that shows how to get a tiny dioxus: https://github.com/ealmloff/tiny-dioxus We have a guide on getting dioxus web as small as possible: https://dioxuslabs.com/learn/0.5/cookbook/optimizing

We should just do this by default rather than making optimizations an opt-in feature

ealmloff commented 2 months ago

Different projects have good reasons for enabling different flags. I think some of these would be ok to enable by default in the template:

But others could cause issues and should't be enabled by default: