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 { browser {
webpackTask { webpackTask {
destinationDirectory = outputDirectory destinationDirectory = outputDirectory
output.libraryTarget = "global" output.library = "Web404"
output.libraryTarget = "this"
cssSupport.enabled = true cssSupport.enabled = true
} }

View File

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

View File

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