Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/frugal/packages/server/mod.ts>watch

A frugal web framework
Go to Latest
function watch
import { watch } from "https://deno.land/x/frugal@0.5.0/packages/server/mod.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[]