Kotlin JS: How to get the NPM dependency JS files to make one big deliverable folder?

HI,

I have a simple gradle build file

val kotlinVersion = "1.3.61"

plugins {
    val kotlinVersion = "1.3.61"

    id("org.jetbrains.kotlin.js") version kotlinVersion
}

repositories {
    jcenter()
    maven(url = "https://kotlin.bintray.com/kotlinx")
}

kotlin {
    target {
        browser()
    }

    sourceSets["main"].dependencies {
        implementation(kotlin("stdlib-js"))
        implementation(npm("left-pad", "1.3.0"))
    }
}

I’d like not to collect all the necessary files to deliver this simple web application. How can this be achieved?

Guenther

It turned out, that the task

./gradlew jsBrowserWebpack

packs then everything (including the NPM dependencies) into one big JS file under build/distributions/