Skip to content

vixt / cli / devArgsDef

devArgsDef ​

const devArgsDef: object

Type Declaration ​

clear ​

clear: object

clear.default ​

default: false = false

clear.description ​

description: string = 'Clear console on restart'

clear.type ​

type: "boolean" = 'boolean'

cors ​

cors: object

cors.description ​

description: string = 'Configure CORS for the dev server'

cors.type ​

type: "boolean" = 'boolean'

debug ​

debug: object

debug.alias ​

alias: string[]

debug.default ​

default: false = false

debug.description ​

description: string = 'Show debug logs'

debug.type ​

type: "boolean" = 'boolean'

force ​

force: object

force.default ​

default: false = false

force.description ​

description: string = 'Force the optimizer to ignore the cache and re-bundle'

force.type ​

type: "boolean" = 'boolean'

host ​

host: object

host.description ​

description: string = 'Host to listen on'

host.type ​

type: "string" = 'string'

https ​

https: object

https.description ​

description: string = 'Enable HTTPS with a locally-trusted development certificate'

https.type ​

type: "boolean" = 'boolean'

logLevel ​

logLevel: object

logLevel.alias ​

alias: string[]

logLevel.description ​

description: string = 'info|warn|error|silent'

logLevel.options ​

options: ("error" | "warn" | "info" | "silent")[]

logLevel.type ​

type: "enum" = 'enum'

mode ​

mode: object

mode.alias ​

alias: string[]

mode.description ​

description: string = 'Set env mode'

mode.type ​

type: "string" = 'string'

open ​

open: object

open.alias ​

alias: string[]

open.default ​

default: false = false

open.description ​

description: string = 'Open the URL in the browser'

open.type ​

type: "boolean" = 'boolean'

port ​

port: object

port.alias ​

alias: string[]

port.description ​

description: string = 'Port to listen on'

port.type ​

type: "string" = 'string'

root ​

root: object

root.default ​

default: undefined = undefined

root.description ​

description: string = 'The root directory of your project (default: .)'

root.required ​

required: false = false

root.type ​

type: "positional" = 'positional'

strictPort ​

strictPort: object

strictPort.description ​

description: string = 'Exit if specified port is already in use'

strictPort.type ​

type: "boolean" = 'boolean'