Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate wasm-opt into the CLI #2434

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented May 20, 2024

Adds wasm-opt support to the CLI without an external tool/CLI. This makes the default release wasm builds smaller and makes it possible to use the CLI for the smallest possible builds instead of trunk. A hello world binary with this version of the CLI is ~103kb or ~42kb with brotli compression.

wasm-opt shrinks most binaries between 4-6% depending on the opt-level. Not a huge difference, but nice to have built in

Closes #1503

@ealmloff ealmloff added web relating to the web renderer for dioxus cli Related to the dioxus-cli program performance labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program performance web relating to the web renderer for dioxus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI: Run wasm-opt after building WASM binary
1 participant