Skip to content

turansky/kfc-plugins

Repository files navigation

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 "16.1.0"
}

Defaults

  • Kotlin/JS
    • Target es2015
    • Granularity
      • per-file
        • Default
        • Required for lazy modules, workers, worklets support
      • whole-program
        • Set kfc.per.file=false to activate
        • Recommended for isolated single file applications

Bundler

We use Vite with Rolldown

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

About

Kotlin/JS Fast Configuration

Topics

Resources

License

Stars

Watchers

Forks

Contributors 6