calrissian
01/12/2022, 5:12 AM<script src="myJS.js"></script>
but when my frontend tries to request that JS file from my Ktor server it response with 404 .. (the request made is http//hostport/myJs.js)I followed the steps to copy myJr.js into my jar file but still seems like the file can't be found..
Also to be clear when I run jsBrowser[Development/Production]Run everything works correctly. But that is likely because webpack dev server is serving js file
Also I would like to mention that when I manually create an endpoint get("/myJs.js") and return static resource myJs.js all seems to work as expected
not sure what I am missing .. any help or suggestions would be appreciatedcalrissian
01/12/2022, 2:07 PMtasks.named<Copy>("jvmProcessResources") {
val jsBrowserDistribution = tasks.named("jsBrowserDistribution")
from(jsBrowserDistribution)
}
I am not sure why my copying myJs.js to the jar didn't allow this resource to be accessible .. I will look into latercalrissian
01/14/2022, 9:29 PM