Skip to content

Commit

Permalink
Vite. Depend on kotlin compile task
Browse files Browse the repository at this point in the history
  • Loading branch information
porotkin committed Sep 2, 2024
1 parent 7ce8577 commit b8eb6f9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class ViteApplicationPlugin : Plugin<Project> {
dependsOn(Vite.productionTask)
}
}
}

private fun Task.dependOnCompile(
taskName: String,
) {
val compile = project.tasks.named(taskName).get()
inputs.files(compile.outputs.files)
dependsOn(compile)
}
private fun Task.dependOnCompile(
taskName: String,
) {
val compile = project.tasks.named(taskName).get()
inputs.files(compile.outputs.files)
dependsOn(compile)
}

0 comments on commit b8eb6f9

Please sign in to comment.