VixtOptions
This is a global declared interface for module @vixt/core, it includes some properties that declared in VueVixtOptions, ReactVixtOptions, etc., see VixtConfig to view the common options.
Extends
Indexable
[
key:string]:any
custom options
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>"
}Inherited from
app?
optionalapp?:AppOptions
Vixt App configuration.
Inherited from
appConfig?
optionalappConfig?:Record<string,any>
Additional app configuration.
Inherited from
build?
optionalbuild?:BuildOptions
Shared build configuration.
Inherited from
buildDir?
optionalbuildDir?:string
Define the directory where your built files will be placed.
Default
'<rootDir>/.vixt'Inherited from
buildLayersDir?
optionalbuildLayersDir?:string
Default
'<buildDir>/layers'Inherited from
buildTypesDir?
optionalbuildTypesDir?:string
Default
'<buildDir>/types'Inherited from
components?
optionalcomponents?:Options
https://github.com/antfu/unplugin-vue-components
Inherited from
VitepressVixtOptions.components
copyLayers?
optionalcopyLayers?:boolean
Experimental
Whether to copy layers from node_modules to .vixt/layers
Default
true
@experimentalInherited from
debug?
optionaldebug?:boolean
Set to true to enable debug mode.
Default
falseInherited from
dev?
optionaldev?:boolean
Whether your app is running in development mode.
Default
falseInherited from
devServer?
optionaldevServer?:DevServerOptions
Set CORS options for the dev server, the port, host, cors options will be passed to vite.server
Inherited from
devtools?
optionaldevtools?:VitePluginVueDevToolsOptions&object
https://github.com/webfansplz/vite-plugin-vue-devtools
Type Declaration
enabled?
optionalenabled?:boolean
Inherited from
extends?
optionalextends?:string[]
Extend project from multiple local or remote sources.
Inherited from
imports?
optionalimports?:ImportsOptions
Configure how Vixt auto-imports composables into your application.
Inherited from
layouts?
optionallayouts?:Partial<Options>
https://github.com/JohnCampionJr/vite-plugin-vue-layouts
Inherited from
meta?
optionalmeta?:VixtConfigLayerMeta
Custom meta for layer.
Inherited from
modules?
optionalmodules?:VixtModule<ModuleOptions>[]
Modules are Vixt extensions which can extend its core functionality and add endless integrations.
Inherited from
modulesDir?
optionalmodulesDir?:string
Define the directory of your Vixt modules.
Default
'<srcDir>/modules'Inherited from
nitro?
optionalnitro?:NitroOptions
Configuration for Nitro.
Inherited from
pages?
optionalpages?:Partial<Options>
https://github.com/hannoeru/vite-plugin-pages
Inherited from
plugins?
optionalplugins?:string[]
An array of vixt app plugins.
Inherited from
pluginsDir?
optionalpluginsDir?:string
Define the directory of your Vixt plugins.
Default
'<srcDir>/plugins'Inherited from
react?
optionalreact?:Options
Inherited from
rootDir?
optionalrootDir?:string
Define the root directory of your application.
Default
process.cwd()Inherited from
router?
optionalrouter?:Options
https://router.vuejs.org/file-based-routing/
Inherited from
srcDir?
optionalsrcDir?:string
Define the source directory of your application.
Default
'<rootDir>/src'Inherited from
ssr?
optionalssr?:boolean
Whether to enable rendering of HTML.
Inherited from
test?
optionaltest?:boolean
Whether your app is being unit tested.
Default
falseInherited from
typescript?
optionaltypescript?:TypescriptOptions
Configuration for TypeScript integration.
Inherited from
uni?
optionaluni?:VitePluginUniOptions
Inherited from
uniComponents?
optionaluniComponents?:Options
https://github.com/uni-helper/vite-plugin-uni-components
Inherited from
uniLayouts?
optionaluniLayouts?:UserOptions
https://github.com/uni-helper/vite-plugin-uni-layouts
Inherited from
uniModules?
optionaluniModules?:ModuleOptions
uniPages?
optionaluniPages?:Partial<Options>
https://github.com/uni-helper/vite-plugin-uni-pages
Inherited from
unocss?
optionalunocss?:string|VitePluginConfig<object>
https://github.com/unocss/unocss
Inherited from
vite?
optionalvite?:Omit<UserConfig,"plugins">
Configuration that will be passed directly to Vite.
Inherited from
vue?
optionalvue?:Options
https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue
Inherited from
vueJsx?
optionalvueJsx?:Options
https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx
Inherited from
workspaceDir?
optionalworkspaceDir?:string
Define the monorepo workspace directory of your application.