# `PhoenixImportmap.Watcher`
[🔗](https://github.com/gilest/phoenix_importmap/blob/main/lib/phoenix_importmap/watcher.ex#L1)

A child-process which watches `watch_dirs` for changed files, and (if they are present in the project importmap) copies them to `:copy_destination_path`.

Public entrypoint is `PhoenixImportmap.copy_and_watch/1`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `init`

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
