I have 2 sub-projects 1. Generates the JS/HTML/CS...
# javascript
m
I have 2 sub-projects 1. Generates the JS/HTML/CSS files browserDistribution task 2. Backend server that needs the generated output of browserDistribution inside his resources to server them static How can I instruct gradle to do this 🙂 ?
m
Thank you @Carter. With your build I got mine working 🙂. There is a difference I am using jvm plugin for the server and js for the frontend, not the multiplatform one. So I added
Copy code
tasks.getByName<Jar>("jar") {
    // Get the resources
    val browserDistributionTask = tasks.getByPath(":web-app:browserDistribution")
    dependsOn(browserDistributionTask)
    from(browserDistributionTask.outputs) {
        into("static")
    }
}
and it seems to package them in the JAR. Would you recommend using the multiplatform plugin for these builds?