Császár Ákos
03/13/2024, 1:38 PMindex.html
file to the resources directory and then I tried to run the jsBrowserRun
task.
How can I add my kotlin code as a script to the html file?
I assume I need to generate a .js file or it is done automatically when I run jsBrowserRun.
Can someone explain to me how it works?Artem Kobzar
03/13/2024, 1:40 PMindex.html
the script tag manually with the name of your module like here: https://github.com/kotlin-hands-on/jvm-js-fullstack/blob/final/src/commonMain/resources/static/index.html#L9
So, if your module name is awesome-kotlin-js-project
you need to add:
<script src="awesome-kotlin-js-project.js"></script>
Császár Ákos
03/13/2024, 1:42 PM