Open iHad169 opened 3 years ago
plugins { id("org.jetbrains.kotlin.js") version "1.4.21" } group = "package com.myapp" version = "1.0.0" repositories { maven("https://kotlin.bintray.com/kotlin-js-wrappers/") mavenCentral() jcenter() } dependencies { implementation(kotlin("stdlib-js")) ... //TensorFlow implementation(npm("@tensorflow/tfjs", "~2.8.1", generateExternals = true)) implementation(npm("@tensorflow/tfjs-vis", "1.4.3", generateExternals = true)) ... } kotlin { js { browser { webpackTask { cssSupport.enabled = true } runTask { cssSupport.enabled = true } testTask { useKarma { useChromeHeadless() webpackConfig.cssSupport.enabled = true } } } binaries.executable() useCommonJs() } }