.gradle.vite.vite-base.0.3.2.source-code.BaseVitePlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vite-base Show documentation
Show all versions of vite-base Show documentation
Gradle plugin to use Vite
package opensavvy.gradle.vite.base
import opensavvy.gradle.vite.base.config.ViteConfig
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
class BaseVitePlugin : Plugin {
override fun apply(target: Project) {
val config = target.extensions.create("vite", ViteConfig::class.java)
}
}
/**
* Accesses the project's [ViteConfig] extension.
*/
val Project.viteConfig: ViteConfig
get() = extensions.getByType()