Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
porotkin committed Sep 18, 2024
1 parent c910795 commit 7447d31
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
## `application`

* Kotlin/JS target - `es2015`
* Bundler - [Vite](https://vitejs.dev/)
* Kotlin/JS compilation - `per-file`
* Usage

#### `build.gradle.kts`

Expand All @@ -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:

Expand All @@ -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
```

0 comments on commit 7447d31

Please sign in to comment.