You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the tutorial and codebase, previously index.html file is in the src/commonMain/resources folder.
But now with new project structure in IDEA, when we select project template as Full-Stack Web Application, we don't have index.html in src/commonMain/resources folder explicitly, instead we have such code in jvmMain/kotlin/Server.kt:
fun HTML.index() {
head {
title("Hello from Ktor!")
}
body {
div {
id = "root"
}
script(src = "/static/MyFullStackWeb.js") {}
}
}
In the tutorial and codebase, previously index.html file is in the src/commonMain/resources folder.
But now with new project structure in IDEA, when we select project template as
Full-Stack Web Application
, we don't have index.html in src/commonMain/resources folder explicitly, instead we have such code in jvmMain/kotlin/Server.kt:After ./gradlew build, we don't see *.html under
/build/distributions
folder, onlyThe text was updated successfully, but these errors were encountered: