Hi all, I created a new Kotlin/JS project using th...
# javascript
c
Hi all, I created a new Kotlin/JS project using the IntelliJ wizard. I created a file with a
fun main() {}
that does a simple print, and an
index.html
with
<script src="project.js"></script>
. I run the
jsBrowserRun
gradle task, and it works, I see the string printed in page console OK. But I also see
Copy code
[WDS] Live Reloading enabled.
So I tried changing the printed string, and I see:
Copy code
[WDS] App updated. Recompiling...
[WDS] Nothing changed.
Quitting and restarting the server makes the amended string appear. Any hints as to what I can do to make live reloading work correctly
d
You also need to run
gradle jsBrowserRun --continuous
to get live-reloading.
r
or simpler
./gradlew -t run
f
Or for me just using Intellij to compile it made it reload aswell