Hello. I'm having trouble deploying Compose HS web...
# compose-web
m
Hello. I'm having trouble deploying Compose HS web app. When I run
jsBrowserDevelopmentWebpack
or
jsBrowserProductionWebpack
I only get
appname.js
file build without any html files. Probably I'm missing some simple thing, but I could not find what I'm missing.
My
build.gradle
file
Copy code
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig

plugins {
    alias(libs.plugins.kotlinMultiplatform)
    alias(libs.plugins.jetbrainsCompose)
    alias(libs.plugins.composeCompiler)
}

kotlin {
    js {
        useCommonJs()
        moduleName = "dovanusarasas"
        binaries.executable()
        browser {
            commonWebpackConfig {
                outputFileName = "dovanusarasas.js"
                devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
                    static = (static ?: mutableListOf()).apply {
                        // Serve sources to debug inside browser
                        add(project.projectDir.path)
                    }
                }
            }
        }
    }

    sourceSets {
        all {
            languageSettings {
                optIn("androidx.compose.ui.ExperimentalComposeUiApi")
            }
        }

        commonMain.dependencies {
            api(project(":shared-compose"))
            implementation("dev.gitlive:firebase-analytics:1.13.0")
        }
    }
}
image.png
Do I need to copy resources manually?
A while ago for HTML compose this setup worked
m
YES! Thank you!! gratitude thank you