import { watchAssets } from "https://deno.land/x/cav@0.0.24/assets.ts";
Prepares the assets directory and watches it for changes to the ts(x) bundles or their dependencies. When a change occurs, the bundles will be rebuilt.
The path to the assets directory is specified with the optional cwd
and
dir
options. The default is { cwd: ".", dir: "assets" }
. (Tip:
import.meta.url
can be specified as a cwd
.)
If the --unstable or --allow-write permissions are not available, an error
will be thrown. If the ignoreErrors
option is true, the error will be
suppressed.
Parameters
optional
opt: WatchAssetsOptions