Skip to content

Commit

Permalink
chore: remove trunk fork mention (tauri-apps#1750)
Browse files Browse the repository at this point in the history
* chore: remove trunk fork mention

* Update trunk.mdx
  • Loading branch information
amrbashir authored Dec 13, 2023
1 parent 9499ad2 commit 25e6cad
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/content/docs/guides/frontend/trunk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@ i18nReady: true

Trunk is a WASM web application bundler for Rust. Learn more about Trunk at https://trunkrs.dev. This guide is accurate as of Trunk 0.17.5.

:::caution[Note on Mobile Support]

Tauri mobile development is not currently possible with the official version of Trunk. If developing for mobile you will need to use https://github.com/amrbashir/trunk until https://github.com/thedodd/trunk/pull/494 and https://github.com/thedodd/trunk/pull/500 are merged and released.

You will need to use `cargo install --git https://github.com/amrbashir/trunk` when installing Trunk and then set `serve.ws_protocol = "ws"` in `Trunk.toml`.

:::

## Checklist

- Use SSG, Tauri doesn't officially support server based solutions.
- Use `address = "0.0.0.0"` so that the webserver is available on the network for mobile development.
- Use `ws_protocol = "ws"` so that the hot-reload websocket can connect properly for mobile development.
- Enable `withGlobalTauri` to ensure that Tauri APIs are available in the `window.__TAURI__` variable and can be imported using `wasm-bindgen`.

## Example Configuration
Expand Down Expand Up @@ -45,4 +38,5 @@ ignore = ["./src-tauri"]

[serve]
address = "0.0.0.0"
ws_protocol = "ws"
```

0 comments on commit 25e6cad

Please sign in to comment.