Skip to content

Commit da60f1a

Browse files
authored
fix(template-dioxus): pass --release to dx in `beforeBuildCommand (#817)
1 parent b6bc86c commit da60f1a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/dioxus-release.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
"create-tauri-app-js": patch
4+
---
5+
6+
Pass `--release` to `dx` CLI in `beforeBuildCommand` for `dioxus` template to generate smaller and optimized wasm bundle.

templates/template-dioxus/.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
beforeDevCommand = dx serve --port 1420
6-
beforeBuildCommand = dx build
6+
beforeBuildCommand = dx build --release
77
devUrl = http://localhost:1420
88
frontendDist = ../dist
99
withGlobalTauri = true

0 commit comments

Comments
 (0)