Skip to content

Vite for Kotlinopensavvy.gradle.vite.kotlin.configKotlinViteConfig

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

@get:
Internal
abstract val base: Property<String>

build

abstract val build: ViteBuildConfig

disabledTargets

@get:
Internal
abstract val disabledTargets: ListProperty<String>

A list of targets names that should not be configured by the Vite plugin.

plugins

@get:
Internal
abstract val plugins: ListProperty<ExternalVitePlugin>

publicDir

@get:
Internal
abstract val publicDir: Property<String>

root

@get:
Internal
abstract val root: DirectoryProperty

server

abstract val server: ViteServerConfig

version

@get:
Internal
abstract val version: Property<String>

Functions

build

open fun build(block: ViteBuildConfig.() -> Unit): ViteBuildConfig

disabledTargets

open fun disabledTargets(vararg targets: String)

plugin

open fun plugin(packageName: String, exportedAs: String, version: String, configuration: String?, isNamedExport: Boolean)

server

open fun server(block: ViteServerConfig.() -> Unit): ViteServerConfig

setDefaults

open fun setDefaults()

setDefaultsFrom

open fun setDefaultsFrom(other: ViteConfig)