I have a kotlin js project (which was bootstrapped...
# javascript
y
I have a kotlin js project (which was bootstrapped from IDEA wizard) with a very simple build file:
Copy code
...
kotlin {
    js(IR) {
        browser {
            binaries.executable()
            webpackTask {
                cssSupport.enabled = true
            }
            runTask {
                cssSupport.enabled = true
            }
        }
    }
}
My project includes a bunch of files that I would like to bundle into a zip file during the build and made available to both the run mode and prod mode (I am using jszip from kotlin to load the zip file but the zip file needs to be generated). Can somebody point me into what I should do to make this happen?
a
If I understand your requirement properly, this sounds more like a general gradle question that a kotlin/JS question. You would need to do something along the lines of declaring another task to perform the zipping and then depending on it from where you need it. You might also find this stackoverflow question useful.