Skip to content

portapack


portapack / types / CLIOptions

Interface: CLIOptions

Defined in: types.ts:141

CLI-specific options extending BundleOptions.

Extends

Properties

baseUrl?

optional baseUrl: string

Defined in: types.ts:76

Base URL for resolving relative links, especially for remote fetches or complex local structures

Inherited from

BundleOptions.baseUrl


dryRun?

optional dryRun: boolean

Defined in: types.ts:82

Skip writing output file to disk (CLI dry-run mode)

Inherited from

BundleOptions.dryRun


embedAssets?

optional embedAssets: boolean

Defined in: types.ts:64

Embed all discovered assets as data URIs (default: true)

Inherited from

BundleOptions.embedAssets


input?

optional input: string

Defined in: types.ts:143

Input file or URL (positional).


logLevel?

optional logLevel: LogLevel

Defined in: types.ts:91

Log level for the internal logger

Inherited from

BundleOptions.logLevel


maxDepth?

optional maxDepth: number

Defined in: types.ts:145

Max depth for recursive crawling (numeric alias for recursive).


minify?

optional minify: boolean

Defined in: types.ts:146


minifyCss?

optional minifyCss: boolean

Defined in: types.ts:70

Enable CSS minification using clean-css (default: true)

Inherited from

BundleOptions.minifyCss


minifyHtml?

optional minifyHtml: boolean

Defined in: types.ts:67

Enable HTML minification using html-minifier-terser (default: true)

Inherited from

BundleOptions.minifyHtml


minifyJs?

optional minifyJs: boolean

Defined in: types.ts:73

Enable JavaScript minification using terser (default: true)

Inherited from

BundleOptions.minifyJs


output?

optional output: string

Defined in: types.ts:88

Optional output file path override (CLI uses this)

Inherited from

BundleOptions.output


recursive?

optional recursive: number | boolean

Defined in: types.ts:85

Enable recursive crawling. If a number, specifies max depth. If true, uses default depth.

Inherited from

BundleOptions.recursive


verbose?

optional verbose: boolean

Defined in: types.ts:79

Enable verbose logging during CLI execution

Inherited from

BundleOptions.verbose

Released under the MIT License