Skip to content

Commit

Permalink
[Tactic] Frontend misses index.html (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls authored Oct 31, 2023
1 parent 968a787 commit ccd87ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion save-frontend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,18 @@ dependencies {
implementation(libs.ktor.http)
}

val distributionsDirName = "distributions"

kotlin {
js(IR) {
// as for `-pre.148-kotlin-1.4.21`, react-table gives errors with IR
browser {
distribution(
Action {
// TODO: need to remove this overriding
outputDirectory = layout.buildDirectory.dir(distributionsDirName)
}
)
testTask {
useKarma {
when (properties["save.profile"]) {
Expand Down Expand Up @@ -243,7 +251,7 @@ val distribution: Configuration by configurations.creating
val distributionJarTask by tasks.registering(Jar::class) {
dependsOn(":save-frontend:browserDistribution")
archiveClassifier.set("distribution")
from("$buildDir/distributions") {
from("$buildDir/$distributionsDirName") {
into("static")
exclude("scss")
}
Expand Down

0 comments on commit ccd87ca

Please sign in to comment.