Skip to content

fix(template-dioxus): pass --release to dx in `beforeBuildCommand - #817

Merged
amrbashir merged 2 commits into
tauri-apps:devfrom
situ2001:chore/dioxus-add-args-before-build
Oct 10, 2024
Merged

amrbashir merged 2 commits into
tauri-apps:devfrom
situ2001:chore/dioxus-add-args-before-build

Conversation

@situ2001

@situ2001 situ2001 commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

As title mentioned. The size of WASM dist is significantly decreased after running dx build with argument --release.

image

Before using dx build --release

image

References: https://dioxuslabs.com/learn/0.4/CLI/cmd/build/

You can use this command to build a project:

dx build --release

@amrbashir amrbashir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@amrbashir amrbashir changed the title chore(template-dioxus): add --release arguments to `beforeBuildComm… fix(template-dioxus): pass --release to dx in `beforeBuildCommand Oct 10, 2024
@amrbashir
amrbashir merged commit da60f1a into tauri-apps:dev Oct 10, 2024
@situ2001
situ2001 deleted the chore/dioxus-add-args-before-build branch October 10, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants