From 7447d3180ab3f8dd56445a93a781d4c8216e22ee Mon Sep 17 00:00:00 2001 From: porotkin Date: Wed, 18 Sep 2024 17:49:38 +0300 Subject: [PATCH] Update README --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 3fb248e4..c1707df0 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ ## `application` * Kotlin/JS target - `es2015` -* Bundler - [Vite](https://vitejs.dev/) +* Kotlin/JS compilation - `per-file` +* Usage #### `build.gradle.kts` @@ -18,17 +19,9 @@ plugins { } ``` -## Vite - -You can build your project with a fast and reliable bundler - Vite! - -It is enabled by default. To opt-out for the default Webpack build, you can add the following property: - -```properties -kfc.bundler=webpack -``` +* Bundler - [Vite](https://vitejs.dev/) -### Configuration +#### Configuration You can add your custom `vite.config.js`. For example: @@ -52,10 +45,18 @@ export default defineConfig(({ mode }) => { }) ``` -### Source Maps +#### Source Maps -You can enable source maps generation setting the following property: +Enable source maps generation: ```properties kfc.source.maps=true ``` + +#### Legacy build with `Webpack` + +Opt-out to a Webpack build: + +```properties +kfc.bundler=webpack +```