Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/docs/dep/frugal/server.ts>watch

A frugal web framework
Go to Latest
function watch
import { watch } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/server.ts";

Convenience function building a FrugalServerBuilder, a FrugalWatcherServer, and starting the watch process.

On each application reload, an event will be dispatched to a LiveReloadClient, triggering a browser refresh.

By default all modules in the dependency graph are watched (see https://deno.land/manual/getting_started/command_line_interface#watch-mode). If you want to watch additionnal files/folders, pass them to the watch option.

Parameters

config: Config
watch: string[]