scriptAttributes
A list of attribute key / value pairs to add to the script tag that imports your site.
By default, Kobweb will just generate a very minimal script tag:
<script src="/yourapp.js"></script>
Content copied to clipboard
However, if you need to add attributes to it, you can do so here. For example, if you need to add a type
attribute, you can do so like this:
scriptAttributes.put("type", "module")
Content copied to clipboard
which would generate:
<script src="/yourapp.js" type="module"></script>
Content copied to clipboard