import { prepareAssets } from "https://deno.land/x/cav@0.0.24/mod.ts";
Bundles every bundle.ts(x) or *_bundle.ts(x) file in the folder into an
adjacent file with the same name plus a .js suffix, recursively. The bundles
will be compiled with lib
s targeting the browser.
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
loc: AssetsLocation