summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/build.gradle.kts28
1 files changed, 25 insertions, 3 deletions
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