Skip to content

dump

fun dump(block: DumpDsl.() -> Unit): String

Creates an information dump.

Example

println(dump {
    section("Hello") {
        value("Path", "first")
        value("Other", "first", "second")
    }
})
fun dump(config: ViteConfig): String

Dumps the entire config.

Example

vite {
    // …
}

val dumpConfig by tasks.registering {
    doLast {
        println(dump(vite))
    }
}