I have a simple kotlin/javascript project ```kotl...
# javascript
y
I have a simple kotlin/javascript project
Copy code
kotlin {
    js(IR) {
        browser {
            binaries.executable()
            webpackTask {
                cssSupport.enabled = true
            }
            runTask {
                cssSupport.enabled = true
            }
        }
    }
}
which automatically picks up all resources from
src/main/resources
. How do I add another folder?
b
kotlin.sourceSets.named("main"){ resources.dir(your dir)}
y
resources.dir
does not exist
y
resources.srcDir
works. Thank you!
b
Glad to help.
You still need to add it to webpack modules if you plan to "require" anything from there in your code.
That project does it too if you need a reference
y
Thanks I will take a look but it's just an opaque zip file containing assets that I load via fetch
b
Ah, in that case you're done with the config