Set the output directory to ./compiledOutput
This commit is contained in:
parent
b8254404ea
commit
446421ed7b
|
@ -14,6 +14,8 @@ dependencies {
|
|||
implementation("org.jetbrains.kotlinx:kotlinx-html:0.7.3")
|
||||
}
|
||||
|
||||
val outputDirectory = file("$rootDir/compiledOutput")
|
||||
|
||||
kotlin {
|
||||
js(IR) {
|
||||
moduleName = "Username404_Website"
|
||||
|
@ -34,6 +36,7 @@ kotlin {
|
|||
}
|
||||
browser {
|
||||
webpackTask {
|
||||
destinationDirectory = outputDirectory
|
||||
output.libraryTarget = "global"
|
||||
cssSupport.enabled = true
|
||||
}
|
||||
|
@ -52,3 +55,10 @@ kotlin {
|
|||
binaries.executable()
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
clean.get().delete.add(outputDirectory)
|
||||
withType(ProcessResources::class) {
|
||||
destinationDir = outputDirectory
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue