Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/content/docs/develop/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,19 +235,22 @@ we must expose it in the local network. To run your app in your device you must
### Reacting to Source Code Changes

Similarly to how your webview reflects changes in real time,
Tauri watches your Rust files for changes so when you modify any of them your application is automatically rebuilt and restarted.
`tauri dev` watches your `src-tauri` folder and its dependent crates in the worksapce for changes
so when you modify any of them your application is automatically rebuilt and restarted.
Comment thread
FabianLars marked this conversation as resolved.

You can disable this behavior by using the `--no-watch` flag on the `tauri dev` command.

To restrict the files that are watched for changes you can create a `.taurignore` file in the src-tauri folder.
This file works just like a regular Git ignore file, so you can ignore any folder or file:
To ignore watching certain files, you can create `.taurignore` files which work like regular `.gitignore` files:

```filename=.taurignore
build/
src/generated/*.rs
deny.toml
```

`.taurignore` files are usually put in the `src-tauri` directory or [cargo workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html) root folder,
currently, `tauri dev` looks for `.taurignore` from anywhere inside the common ancestor of watched folders and cargo workspace root folder

### Using the Browser DevTools

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.
Expand Down