Skip to content

Commit 20ec6fd

Browse files
chore(changelog): document changes for frontend dev server readiness in wails3 dev
1 parent c0a66bd commit 20ec6fd

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎v3/UNRELEASED_CHANGELOG.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,27 @@ After processing, the content will be moved to the main changelog and this file
2020

2121
## Changed
2222
<!-- Changes in existing functionality -->
23+
- Start the native application in `wails3 dev` only after the frontend development server is accepting connections. Existing alpha projects must add a `dev:wait` task to `build/Taskfile.yml`:
24+
25+
```yaml
26+
dev:wait:
27+
summary: Waits for the frontend development server
28+
vars:
29+
TIMEOUT: 60
30+
cmds:
31+
- wails3 tool waitport --timeout {{.TIMEOUT}}
32+
```
33+
34+
Then insert the readiness step in `build/config.yml` after the background frontend task and before the primary application task:
35+
36+
```yaml
37+
- cmd: wails3 task common:dev:frontend
38+
type: background
39+
- cmd: wails3 task common:dev:wait
40+
type: once
41+
- cmd: wails3 task run
42+
type: primary
43+
```
2344

2445
## Fixed
2546
<!-- Bug fixes -->

0 commit comments

Comments
 (0)