You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/develop/index.mdx
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,19 +235,22 @@ we must expose it in the local network. To run your app in your device you must
235
235
### Reacting to Source Code Changes
236
236
237
237
Similarly to how your webview reflects changes in real time,
238
-
Tauri watches your Rust files for changes so when you modify any of them your application is automatically rebuilt and restarted.
238
+
`tauri dev` watches your `src-tauri` folder and its dependent crates in the worksapce for changes
239
+
so when you modify any of them your application is automatically rebuilt and restarted.
239
240
240
241
You can disable this behavior by using the `--no-watch` flag on the `tauri dev` command.
241
242
242
-
To restrict the files that are watched for changes you can create a `.taurignore` file in the src-tauri folder.
243
-
This file works just like a regular Git ignore file, so you can ignore any folder or file:
243
+
To ignore watching certain files, you can create `.taurignore` files which work like regular `.gitignore` files:
244
244
245
245
```filename=.taurignore
246
246
build/
247
247
src/generated/*.rs
248
248
deny.toml
249
249
```
250
250
251
+
`.taurignore` files are usually put in the `src-tauri` directory or [cargo workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html) root folder,
252
+
currently, `tauri dev` looks for `.taurignore` from anywhere inside the common ancestor of watched folders and cargo workspace root folder
253
+
251
254
### Using the Browser DevTools
252
255
253
256
Tauri's APIs only work in your app window, so once you start using them you won't be able to open your frontend in your system's browser anymore.
0 commit comments