I need to keep compatibility with both webpack and...
# opensavvy
r
I need to keep compatibility with both webpack and vite and I've got a problem with resources paths. With webpack I use
@JsModule("/kotlin/css/style.css")
but with Vite I need
@JsModule("/css/style.css")
. I think the difference is in the directory where node command is executed. With webpack it's
build/js/packages/<module>
and
kotlin
is one level below. With vite it's
build/vite/dev/kotlin
. Could it be changed?