From 176e37844c17eaabb5c9da0f9c23237df9c0b5a8 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 14:56:23 +0200 Subject: idk make it maveny --- example/build.gradle.kts | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 46f4a6d..2efa08e 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -1,7 +1,29 @@ +plugins { + kotlin("js") +} -dependencies { - implementation(npm("@fontsource/comic-mono", "^4.5.0")) - implementation(rootProject) +repositories { + mavenCentral() } +kotlin { + sourceSets.all { + languageSettings.optIn("kotlin.ExperimentalStdlibApi") + languageSettings.optIn("kotlin.RequiresOptIn") + } + js(IR) { + browser { + commonWebpackConfig { + sourceMaps = true + cssSupport.enabled = true + } + } + binaries.executable() + } +} + +dependencies { + implementation(npm("@fontsource/comic-mono", "^4.5.0")) + implementation(rootProject) +} \ No newline at end of file -- cgit