# Continous build in multiplatform project for WDS hot reloading

**URL:** <https://discuss.kotlinlang.org/t/continous-build-in-multiplatform-project-for-wds-hot-reloading/16282>\
**Category:** Multiplatform\
**Created:** [February 10, 2020, 7:07pm UTC](https://discuss.kotlinlang.org/t/continous-build-in-multiplatform-project-for-wds-hot-reloading/16282 "2020-02-10T19:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mesayah](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/mesayah/32/5892_2.png) [@Mesayah](https://discuss.kotlinlang.org/u/Mesayah)\
**Post date:** [February 10, 2020, 7:07pm UTC](https://discuss.kotlinlang.org/t/continous-build-in-multiplatform-project-for-wds-hot-reloading/16282/1 "2020-02-10T19:07:55Z")

</div>

Hello. I managed to configure multiplatform project with JVM and JS targets with React but I can’t get it to update frontend on hot reload. When I make a change to kotlin sources I see that there is a signal emitted to the browser and the page is being refreshed, but there are no changes to the content. I tried to use `--continuous` option for `jsRun` task but it’s unknown for Gradle. I was following the guide here: [https://kotlinlang.org/docs/reference/js-project-setup.html#configuring-run-task](https://kotlinlang.org/docs/reference/js-project-setup.html#configuring-run-task) but it’s for Kotlin/JS projects, not for multiplatform projects and it seems that `jsRun` doesn’t work like `run` task from Kotlin/JS. I guess webpack is running fine with hot reloading and it’s watching my kotlin sources, but the sources are not compiled each time I make a change. How can I configure my project so that changes to the source are reflected on hot reloading?

The project is available here: [https://github.com/Mesayah/kstore](https://github.com/Mesayah/kstore)

---

<div class="post-metadata">

**Author:** ![alexoooo](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@alexoooo](https://discuss.kotlinlang.org/u/alexoooo)\
**Post date:** [April 15, 2020, 2:06pm UTC](https://discuss.kotlinlang.org/t/continous-build-in-multiplatform-project-for-wds-hot-reloading/16282/2 "2020-04-15T14:06:24Z")

</div>

There is an example project with hot reload working:

> **[GitHub - Kotlin/full-stack-web-jetbrains-night-sample: Full-stack demo...](https://github.com/Kotlin/full-stack-web-jetbrains-night-sample)**
>
> Full-stack demo application written with Kotlin MPP - GitHub - Kotlin/full-stack-web-jetbrains-night-sample: Full-stack demo application written with Kotlin MPP

I was able to get React front-end hot reload working with Spring Boot back-end, using Kotlin Gradle DSL: [GitHub - alexoooo/sample-multiplatform-boot-react: Sample of full-stack application in Kotlin with Spring Boot back-end and React front-end](https://github.com/alexoooo/sample-multiplatform-boot-react)

Note that the multimplatform functionality is still experimental, and there is a new IR coming which will probably require things to be done somewhat differently: [https://blog.jetbrains.com/kotlin/2020/03/kotlin-1-4-m1-released/](https://blog.jetbrains.com/kotlin/2020/03/kotlin-1-4-m1-released/)
