CLOVIS
08/31/2025, 6:13 PMWith webpack I usebut with Vite I need@JsModule("/kotlin/css/style.css")
.@JsModule("/css/style.css")
I think so. It's this issue, if you want to follow it. I'll increase its priority. https://gitlab.com/opensavvy/automation/kotlin-vite/-/issues/39
Robert Jaros
08/31/2025, 6:22 PMRobert Jaros
09/01/2025, 2:09 PMkotlin-kotlin-stdlib.mjs
file into your resources 😉). Webpack is executed one level up so kotlin/*
paths are working fine. But Vite needs root
directory with both index.html
and project.mjs
, so even if you execute Vite in different directory it won't help with paths.Robert Jaros
09/01/2025, 2:27 PM./
path prefixes, which work for both webpack and vite. You need to decide whether the need for compatibility is important for your project.CLOVIS
09/01/2025, 2:34 PMCLOVIS
09/01/2025, 2:35 PMRobert Jaros
09/01/2025, 2:54 PMcompileDevelopmentExecutableKotlinJs
CLOVIS
09/01/2025, 3:19 PMworkingDir/
vite.config.js
index.html
<other resources>
kotlin/
<all source code>
?
But that might cause other problems in the way code refers to resources.Robert Jaros
09/01/2025, 3:26 PMCLOVIS
09/01/2025, 3:27 PM