portapack / index / generatePortableHTML
Function: generatePortableHTML()
generatePortableHTML(
input,options?,loggerInstance?):Promise<BuildResult>
Defined in: index.ts:89
Bundle a single HTML file or URL without recursive crawling. Handles both local file paths and remote HTTP/HTTPS URLs. If loggerInstance is not provided, it creates its own logger based on options.logLevel.
Parameters
input
string
Local file path or remote URL (http/https).
options?
BundleOptions = {}
Configuration options.
loggerInstance?
Optional external logger instance.
Returns
Promise<BuildResult>
A Promise resolving to the build result.
Throws
Errors during file reading, network fetching, parsing, or asset processing.
