https://kotlinlang.org logo
#javascript
Title
# javascript
c

Claude Brisson

03/19/2023, 8:00 PM
Hi. I still don't get how to generate a .js file to include in a web page using basic <script> tags. Some web pages talk about a browserProductionWebpack gradle task, but I don't see it in my kotlin js project. I am not using node.js on the server side, and not willing to. I'm just stuck on the very simple task of getting my kotlin code compiled into a .js file, and I don't seem to find any relevant resource online, which I find quite frightening...
r

Robert Jaros

03/19/2023, 8:04 PM
Make sure you've got
binaries.executable()
in your
build.gradle.kts
(https://kotlinlang.org/docs/js-project-setup.html#execution-environments).
t

turansky

03/19/2023, 8:06 PM
c

Claude Brisson

03/19/2023, 8:06 PM
Ok, thank you.
6 Views