VixtConfig
Extended by
Properties
alias?
optionalalias?:AliasOptions
You can improve your DX by defining additional aliases to access custom directories within your JavaScript and CSS.
Default
{
"@": "/<rootDir>/<srcDir>",
"~": "/<rootDir>/<srcDir>",
"~~": "/<rootDir>",
"@@": "/<rootDir>",
"#": "/<rootDir>/<buildDir>"
}app?
optionalapp?:AppOptions
Vixt App configuration.
appConfig?
optionalappConfig?:Record<string,any>
Additional app configuration.
build?
optionalbuild?:BuildOptions
Shared build configuration.
buildDir?
optionalbuildDir?:string
Define the directory where your built files will be placed.
Default
'<rootDir>/.vixt'buildLayersDir?
optionalbuildLayersDir?:string
Default
'<buildDir>/layers'buildTypesDir?
optionalbuildTypesDir?:string
Default
'<buildDir>/types'copyLayers?
optionalcopyLayers?:boolean
Experimental
Whether to copy layers from node_modules to .vixt/layers
Default
true
@experimentaldebug?
optionaldebug?:boolean
Set to true to enable debug mode.
Default
falsedev?
optionaldev?:boolean
Whether your app is running in development mode.
Default
falsedevServer?
optionaldevServer?:DevServerOptions
Set CORS options for the dev server, the port, host, cors options will be passed to vite.server
extends?
optionalextends?:string[]
Extend project from multiple local or remote sources.
imports?
optionalimports?:ImportsOptions
Configure how Vixt auto-imports composables into your application.
meta?
optionalmeta?:VixtConfigLayerMeta
Custom meta for layer.
modules?
optionalmodules?:VixtModule<ModuleOptions>[]
Modules are Vixt extensions which can extend its core functionality and add endless integrations.
modulesDir?
optionalmodulesDir?:string
Define the directory of your Vixt modules.
Default
'<srcDir>/modules'nitro?
optionalnitro?:NitroOptions
Configuration for Nitro.
plugins?
optionalplugins?:string[]
An array of vixt app plugins.
pluginsDir?
optionalpluginsDir?:string
Define the directory of your Vixt plugins.
Default
'<srcDir>/plugins'rootDir?
optionalrootDir?:string
Define the root directory of your application.
Default
process.cwd()srcDir?
optionalsrcDir?:string
Define the source directory of your application.
Default
'<rootDir>/src'ssr?
optionalssr?:boolean
Whether to enable rendering of HTML.
test?
optionaltest?:boolean
Whether your app is being unit tested.
Default
falsetypescript?
optionaltypescript?:TypescriptOptions
Configuration for TypeScript integration.
vite?
optionalvite?:Omit<UserConfig,"plugins">
Configuration that will be passed directly to Vite.
workspaceDir?
optionalworkspaceDir?:string
Define the monorepo workspace directory of your application.