Skip to main content
Module

x/cav/mod.ts>prepareAssets

A server framework for Deno
Go to Latest
function prepareAssets
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 libs 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.