Skip to content

Commit 675b091

Browse files
fix(cli/fragments): fix yew fragment beforeDevCommand and withGlobalTauri (#147)
Changed "beforeDevCommand" from "trunk build" to "trunk server". Before when you called "tauri dev" infinite loop will occur waiting for dev server to become available at "http://localhost:1420". This would not happen because "trunk build" only builds artifacts and don't actually start serving them. Changed "withGlobalTauri" from "false" to "true" so example frontend can actually "invoke" backend methods
1 parent 2867f7d commit 675b091

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
---
4+
5+
Fixed yew template "beforeDevCommand" from "trunk build" to "trunk serve". Before when you called "tauri dev" infinite loop will occur waiting for dev server to become available at "http://localhost:1420".
6+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-tauri-app": patch
3+
---
4+
5+
Changed "withGlobalTauri" for yew template from "false" to "true" so example frontend can actually "invoke" backend methods

packages/cli/fragments/fragment-yew/_cta_manifest_

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# SPDX-License-Identifier: MIT
44

5-
devCommand = trunk build
5+
devCommand = trunk serve
66
buildCommand = trunk build
77
devPath = http://localhost:1420
88
distDir = ../dist
9+
withGlobalTauri = true
910

1011
[files]
1112
tauri.svg = public/tauri.svg

0 commit comments

Comments
 (0)