https://kotlinlang.org logo
#ktor
Title
# ktor
c

codec

01/03/2020, 1:54 AM
But once you import //https://mvnrepository.com/artifact/org.webjars.npm/material-components-web It’s not exactly clear how to setup the static resource to use those css and js files.
c

cy

01/03/2020, 11:27 AM
use ktor-webjars
c

codec

01/03/2020, 1:50 PM
thanks! this was exactly what i was looking for 😄
the
Copy code
<link rel="stylesheet" href="webjars/material-components-web/4.0.0/dist/material-components-web.min.css">
is able to resolve the gradle webjars. So Ktor has done it’s job. However, Material Design isn’t quite working that well out of the box, embedded in FreeMarket Templates.
Material Design imported from WebJar isn’t perfect
3 Views