is there anything in place to create an archive of...
# javascript
j
is there anything in place to create an archive of the static resources and final js for deploying a webapp?
Right now I'm doing
Copy code
distributions {
  main {
    contents {
      from("src/main/resources")
      from("$buildDir/distributions/webapp.js")
      into("/")
    }
  }
}
tasks.named("distZip").configure {
  dependsOn(tasks.getByName("browserWebpack"))
}
but would love for something like this to be automatic
i
I've been doing something similar to that as well, afaik nothing exists.
j
Seems unfortunate given that tasks like
run
already need to know where everything is. I guess I'll just file a bug and try to make that argument.
b
сс @Ilya Goncharov [JB]
i
Hi! Do you use
resources
as assets? You need hust copy from
resources
to final
distribution
folder?
s
Seems unfortunate given that tasks like
run
already need to know where everything is. I guess I'll just file a bug and try to make that argument.
@Jake This is exactly how we are fixed this in 1.3.70: distribution folder will contain the same things that run task is used. Hopefully, the first eap will be in this year.
👍 2
🎉 1
g
Hi @snrostov, is there a way to disable this? Because I'm using a custom webpack configuration which is spitting out filenames with hash in them and in a different folder structure. Now I've duplicates in the distributions folder. (Not a major issue, since they are in a separate folder) (I'm on kotlin 1.4 and using the latest plugins).
s
@Ilya Goncharov [JB], please help ^^^
i
@Gurupad Mamadapur [FH] you can disable task
browserDistributeResources
and resources will not copy to distributions folder
👍 1