Hey! I was wondering if it is possible to provide ...
# ktor
m
Hey! I was wondering if it is possible to provide KotlinJs as static resource for Ktor server, I have found a very old post <https://discuss.kotlinlang.org/t/serve-kotlin-js-distribution-as-static-assets-in-kotlin-jvm-project-with-ktor/17016/2> talking about it, which works to a certain degree, it breaks very easy and does not work with the auto-reload
c
The answer by Roman Gupta should still be correct. If you have a specific problem, ask a specific question about your problem
m
Was mostly wondering if there was a different way of doing it, which I found that there is, using jvmMain and jsMain as a multiplatform module. But it still have an issue where saving the js file doesn't trigger the auto-reload.
c
The only way to have reload work is using Roman's answer. All other possible ways of doing it are invisible to Gradle, and will cause caching issues.
m
I see, will try that one again, ty!