--watch)The watcher module monitors your site files for changes and triggers a rebuild automatically. It also registers the build CLI command.
lunet build --watch
After the initial build, the watcher monitors for file changes and rebuilds the entire site when changes are detected.
| Option | Default | Description |
|---|---|---|
--watch |
disabled | Enable file watching after build |
--dev |
disabled | Set environment to "dev" (production otherwise) |
--no-threads |
disabled | Disable multi-threading (useful for debugging) |
lunet serve
The Server module enables --watch and --dev by default.
The watcher creates file system watchers for each directory in your site. When files change:
The following paths are always excluded from watching:
.lunet/build/** — the output directory"new" under .lunet/The site configuration file is always watched, regardless of other exclusion rules.
lunet serve with live reload