Access the main.kt from javascript

This commit is contained in:
Username404-59 2021-06-20 16:20:53 +02:00 committed by Username404
parent 446421ed7b
commit ea9b852e4a
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
3 changed files with 3 additions and 6 deletions

View File

@ -37,7 +37,8 @@ kotlin {
browser {
webpackTask {
destinationDirectory = outputDirectory
output.libraryTarget = "global"
output.library = "Web404"
output.libraryTarget = "this"
cssSupport.enabled = true
}

View File

@ -1,5 +1,3 @@
package fr.username404.website
import kotlinx.browser.document
import kotlinx.browser.window
import kotlinx.html.dom.append

View File

@ -48,8 +48,6 @@
Source
</a>
</div>
<script>
// TODO Call kotlin code from the html file
</script>
<script>Web404.makeBody()</script>
</body>
</html>