/kfc-plugins

Kotlin/JS Fast Configuration

Primary LanguageKotlinApache License 2.0Apache-2.0

CI Status CI Status Gradle Plugin Portal Kotlin

Kotlin/JS Fast Configuration

application

Usage

build.gradle.kts

plugins {
    id("io.github.turansky.kfc.application") version "13.8.0"
}

Defaults

  • Kotlin/JS
    • Target es2015
    • Granularity per-file

Bundler

We use Vite

Configuration

You can add your custom vite.config.mjs (example)

Dev Server

  1. Add index.html file with module script to JS entrypoint (example)

  2. Specify custom config file with root to kotlin (example)

  3. Start a dev server, run jsViteRun task (example)

Source Maps

Enable source maps generation:

kfc.source.maps=true