KotlinViteConfig¶
interface KotlinViteConfig : ViteConfig
The configuration block with options specific to the Kotlin Multiplatform projects.
Properties¶
autoRewriteIndex¶
@get:
Internal
abstract val autoRewriteIndex: Property<Boolean>
base¶
build¶
abstract val build: ViteBuildConfig
cacheDir¶
disabledTargets¶
open fun disabledTargets(vararg targets: String)
@get:
Internal
abstract val disabledTargets: ListProperty<String>
A list of targets names that should not be configured by the Vite plugin.
Example¶
plugins¶
@get:
Internal
abstract val plugins: ListProperty<ExternalVitePlugin>
publicDir¶
root¶
@get:
Internal
abstract val root: DirectoryProperty
server¶
abstract val server: ViteServerConfig
version¶
Functions¶
build¶
open fun build(block: ViteBuildConfig.() -> Unit): ViteBuildConfig
localPlugin¶
plugin¶
server¶
open fun server(block: ViteServerConfig.() -> Unit): ViteServerConfig
setDefaults¶
open fun setDefaults()
setDefaultsFrom¶
open fun setDefaultsFrom(other: ViteConfig)