Gunslingor
08/19/2020, 1:26 AMlink("/libs/package/css/somepackage.min.css","stylesheet")
which would be referencing stuff in the resources folder, how do you do something like:
link(npm("something))
I haven't really been able to figure out this node thing.implementation(npm("grapesjs"))
works in my front end I guess, somehow... all I know is I still need grapejs in resources which seems odd.andylamax
08/19/2020, 2:12 AMjvm
trying to add npm
deps there wont work. You are literally trying to serve your applications with both the jvm
and node
environment. Though it is achievable, I do not advicegrapesjs
download grapesjs
locally and serve it from your ktor
server, or use the CDN
i.e.
link("https://cdnjs.cloudflare.com/ajax/libs/grapesjs/0.16.18/grapes.min.js")Gunslingor
08/19/2020, 3:23 AMimplementation(npm("grapesjs"))
Webpack breaks when I don't have this.@JsModule("grapesjs")
@JsNonModule
external object Grapes {
//var getComponents: Function<Array<Components>>
fun init(param: GrapesInit)
var getComponents: Array<Component>
var Modal: Modal
}
andylamax
08/19/2020, 9:46 AMjavascript
in it? Forgive me if I miss somethingGunslingor
08/19/2020, 3:52 PMandylamax
08/19/2020, 5:16 PMGunslingor
08/19/2020, 5:16 PMandylamax
08/19/2020, 5:18 PMkotlin/js
what are you using ktor
for?kotlin/js
. I can help you setup using typed css with kotlin-css
, or kotlin-styled
. Configure webpack and what not.
FYI: I am also still on 1.3.72Gunslingor
08/19/2020, 5:21 PM