If anyone is interested, all KVision example apps ...
# javascript
r
If anyone is interested, all KVision example apps from https://github.com/rjaros/kvision-examples have been refactored to use new Kotlin/JS plugin instead of the deprecated frontend plugin. The changes include: - New Kotlin/JS plugin for all non-MPP and MPP projects - Support for development with webpack dev server and HMR - Support for production builds with both DCE and webpack optimizations - Support for testing with Karma and headless Chrome - Workarounds for some issues, including KT-34287 and KT-32531 - Update Gradle to the latest version (6.0.1) with all deprecation warnings fixed
👍 16
s
FYI: 1.3.70 will support DCE out of the box on build task, without any configuration, and DCE plugin will be deprecated. The first EAP will be announced in a couple of days, but you can try it already: https://bintray.com/kotlin/kotlin-dev/kotlin/1.3.70-eap-42 You can try it by creating a new Kotlin/JS browser project and calling build task. There are 2 build variants: production and development. Production variant is used by default on build task, and development - on run. Note: browserWebpack was replaced with browserProductionWebpack, and browserRun with browserDevelopmentRun. Old tasks are still available as usual tasks, but no longer configurable as webpack tasks. You should use new task names in your build scripts. @Ilya Goncharov [JB] FYI