Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add information about the `extra_extensions` config option.
  • Loading branch information
samaaron authored and lpil committed Apr 15, 2021
1 parent f9c759c commit 275fb0d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ end

The default is `exclude: [~r/\.#/, ~r{priv/repo/migrations}]`.

## Watching files with other extensions

To watch files with extensions other than the default (`.erl`, `.ex`, `.exs`, `.eex`, `.leex`, `.xrl`, `.yrl`, `.hrl`) add them to `extra_extensions:` in your config:

```elixir
# config/config.exs
use Mix.Config

if Mix.env == :dev do
config :mix_test_watch,
extra_extensions: [".rs"]
end
```

## Compatibility Notes

On Linux you may need to install `inotify-tools`.
Expand Down

0 comments on commit 275fb0d

Please sign in to comment.