kotlinx.html
kotlinx.html copied to clipboard
ScriptType of `<script>` is missing type "module"
I couldn't find a way to express
<script type="module" src="/scripts/.js"></script>
other than
unsafe {
raw("<script type="module" src="/scripts/live-reload.js"></script>")
}
Is that missing from ScriptType
on purpose for some reason? Or has it not yet been implemented?
You could either do:
script(src = "index.js") {
attributes["type"] = "module"
}
or
script(src = "index.js", type = "module") { }