Sam Gammon
12/02/2022, 8:50 AMSam Gammon
12/02/2022, 8:50 AMcommonWebpackConfig {
sourceMaps = false
cssSupport {
enabled = true
}
mode = org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig.Mode.DEVELOPMENT
}
Sam Gammon
12/02/2022, 8:50 AMSam Gammon
12/02/2022, 8:51 AMmode
needs to set a field, and the cssSupport { }
as block will remove the deprecation warning you're probably gettingDamien O'Hara
12/02/2022, 8:51 AMDamien O'Hara
12/02/2022, 8:51 AMmode
I think I mangled when I ported the buildscript overSam Gammon
12/02/2022, 8:52 AMSam Gammon
12/02/2022, 8:52 AMDamien O'Hara
12/02/2022, 8:53 AMDamien O'Hara
12/02/2022, 8:53 AMSam Gammon
12/02/2022, 8:53 AMSam Gammon
12/02/2022, 8:53 AMSam Gammon
12/02/2022, 8:53 AMSam Gammon
12/02/2022, 8:54 AMSam Gammon
12/02/2022, 8:54 AMSam Gammon
12/02/2022, 8:57 AMSam Gammon
12/02/2022, 8:57 AMSam Gammon
12/02/2022, 8:57 AMDamien O'Hara
12/02/2022, 9:03 AMtasks.withType<Copy>().named("processResources") {
dependsOn("copyStatic")
}
tasks.register<Copy>("copyStatic") {
from("src/main/resources/static/**/*.*")
into("$buildDir/resources/main/static")
}
Sam Gammon
12/02/2022, 9:04 AMstatic/
folder in your classpath resources/
Sam Gammon
12/02/2022, 9:04 AMSam Gammon
12/02/2022, 9:04 AMfavicon.ico
Sam Gammon
12/02/2022, 9:04 AMSam Gammon
12/02/2022, 9:04 AMmicronaut:
router:
static-resources:
default:
enabled: true
mapping: "/**"
paths: classpath:static
Sam Gammon
12/02/2022, 9:05 AMapplication.yml
Sam Gammon
12/02/2022, 9:05 AMSam Gammon
12/02/2022, 9:05 AMDamien O'Hara
12/02/2022, 9:11 AMelide {
server {
assets {
script("scripts.ui") {
from(project(":frontend"))
}
}
}
}
giving:
Failed to resolve project configuration ':frontend'/'assetDist' for asset module 'scripts.ui'
Sam Gammon
12/02/2022, 9:11 AMDamien O'Hara
12/02/2022, 9:11 AMDamien O'Hara
12/02/2022, 9:11 AM