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

x/bundlee/mod.ts>Bundlee#bundleFiles

Bundle static assets to a single JSON-file.
Go to Latest
method Bundlee.prototype.bundleFiles
import { Bundlee } from "https://deno.land/x/bundlee@0.9.3/mod.ts";

Bundle files into a single JSON object.

Parameters

basePath: string

The base path for file paths.

fileList: string[]

A list of file paths.

Returns

Promise<Record<string, Metadata>>

A promise that resolves to a JSON object containing encoded file contents.