travis
01/11/2021, 12:16 AMLEGACY
) via generated static web page (using ./gradlew browserDistribution
and opening generated index.html
in browser)?
(looking to create a simple web page and deploy it to GitHub Pages)
Kotlin (module named webapp
)
@JsExport
fun main() { <http://console.info|console.info>("hi") }
@JsExport
fun hello() { <http://console.info|console.info>("hi") }
JavaScript
webapp.main() // Works when using `browserDistribution` and `browserDevelopmentRun` Gradle tasks.
webapp.hello() // Only works when using `browserDevelopmentRun` task.
travis
01/12/2021, 8:36 AMtravis
01/12/2021, 8:54 AMbrowserDevelopmentWebpack
task works when using LEGACY
compiler.
Despite producing a bloated JavaScript output, it will suffice my needs until I can make the switch to the IR
compiler.