Skip to content

Vite for Gradleopensavvy.gradle.vite.base.configViteBuildConfig

ViteBuildConfig

interface ViteBuildConfig

Rollup configuration.

vite {
    build {
        // …
    }
}

Properties

modulePreload

@get:
Internal
abstract val modulePreload: Property<Boolean>

Whether to automatically inject a module preload polyfill.

outDir

@get:
Internal
abstract val outDir: DirectoryProperty

Output directory of the production build.

target

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

Browser compatibility target for the final bundle.