Now I have Webpack and Kotlin both copy all resour...
# javascript
m
Now I have Webpack and Kotlin both copy all resources, but into different directories 😴 Is there a way to prevent Kotlin from copying resources to the
distribution
? And
devServer
also shouldn’t serve files from the resources folder directly. Edit 1: I need to keep the folder marked as a resources folder. Edit 2: Mhh,
index.html
is a notable exception because it’s not copied by a Webpack loader.
No longer necessary.
t
Is there a way to prevent Kotlin from copying resources to the 
distribution
?
You can disable
distribution...
task
And 
devServer
 also shouldn’t serve files from the resources folder directly.
It looks like second
Copy
task which must be disabled
m
I do need the distribution. The
.js
files are there,
index.html
must be there and Webpack copies assets there.
Workaround I’ve found so far:
New approach 😄
Copy code
resources.exclude("*")
👍 1