portapack / types / CLIOptions
Interface: CLIOptions
Defined in: types.ts:141
CLI-specific options extending BundleOptions.
Extends
Properties
baseUrl?
optionalbaseUrl:string
Defined in: types.ts:76
Base URL for resolving relative links, especially for remote fetches or complex local structures
Inherited from
dryRun?
optionaldryRun:boolean
Defined in: types.ts:82
Skip writing output file to disk (CLI dry-run mode)
Inherited from
embedAssets?
optionalembedAssets:boolean
Defined in: types.ts:64
Embed all discovered assets as data URIs (default: true)
Inherited from
input?
optionalinput:string
Defined in: types.ts:143
Input file or URL (positional).
logLevel?
optionallogLevel:LogLevel
Defined in: types.ts:91
Log level for the internal logger
Inherited from
maxDepth?
optionalmaxDepth:number
Defined in: types.ts:145
Max depth for recursive crawling (numeric alias for recursive).
minify?
optionalminify:boolean
Defined in: types.ts:146
minifyCss?
optionalminifyCss:boolean
Defined in: types.ts:70
Enable CSS minification using clean-css (default: true)
Inherited from
minifyHtml?
optionalminifyHtml:boolean
Defined in: types.ts:67
Enable HTML minification using html-minifier-terser (default: true)
Inherited from
minifyJs?
optionalminifyJs:boolean
Defined in: types.ts:73
Enable JavaScript minification using terser (default: true)
Inherited from
output?
optionaloutput:string
Defined in: types.ts:88
Optional output file path override (CLI uses this)
Inherited from
recursive?
optionalrecursive:number|boolean
Defined in: types.ts:85
Enable recursive crawling. If a number, specifies max depth. If true, uses default depth.
Inherited from
verbose?
optionalverbose:boolean
Defined in: types.ts:79
Enable verbose logging during CLI execution
