Hi. Can anybody help to put JS distribution files in KMP module as JVM static resources? I found several topics, but they are al outdated and related to old JS plugin.
a
Artem Kobzar
01/16/2025, 1:19 PM
You want to put the generated by compiler file into a KLIB resources, right?
e
Eugene Maksymenko
01/16/2025, 1:23 PM
@Artem Kobzar I have a KMP lib with commonMain, jvmMain and jsMain sources. JvmMain contains Ktor Routing. JsMain contains some static HTMP with image resources. This lib is now integrated in some external Android and Java applications as JVM dependency. I want to build in jsMain distribution to the jvmMain/resources/webapp folter during library publication.
Eugene Maksymenko
01/16/2025, 1:25 PM
Currently my Android and JVM external applications can run Ktor server and use routing, but Ktor does not see index.html and app.js static resources files as they are not pacjed inside jvmMain jar.