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
dryRun?
optional
dryRun:boolean
Defined in: types.ts:82
Skip writing output file to disk (CLI dry-run mode)
Inherited from
embedAssets?
optional
embedAssets:boolean
Defined in: types.ts:64
Embed all discovered assets as data URIs (default: true)
Inherited from
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
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
minifyHtml?
optional
minifyHtml:boolean
Defined in: types.ts:67
Enable HTML minification using html-minifier-terser (default: true)
Inherited from
minifyJs?
optional
minifyJs:boolean
Defined in: types.ts:73
Enable JavaScript minification using terser (default: true)
Inherited from
output?
optional
output:string
Defined in: types.ts:88
Optional output file path override (CLI uses this)
Inherited from
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
verbose?
optional
verbose:boolean
Defined in: types.ts:79
Enable verbose logging during CLI execution