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

Ivan Cagle (IvanEOD)

09/28/2023, 4:21 PM
I'm trying this Generate one JS file per one Kotlin file ... and can't seem to get it to do it, its still just making the one file
1
okay.. i had kotlin verion 1.9.0... i switched to 1.9.20-Beta and it opened up
@file:JsFileName
.. i may be on to something now
👍 1
@turansky do you know if i can do mostly per module but specify which files i would like to be per file?
or even package
t

turansky

09/28/2023, 6:36 PM
With
per-file
granularity you can configure Webpack entries for described use case
1
i

Ivan Cagle (IvanEOD)

09/28/2023, 6:37 PM
thank you, i will try to find some info on how to do that.. i've been using
nodejs()
.. but i'm not stuck on it, if i have to switch to browser to get webpack
do you know a project or something i can look at for an example on using the webpack like that?
@turansky sorry to keep pinging you... is this plugin of yours the right thing i need for this? https://github.com/turansky/kfc-plugins/tree/master#task-patchwebpackconfig
t

turansky

09/28/2023, 11:04 PM
It can simplify entry script generation
i

Ivan Cagle (IvanEOD)

09/28/2023, 11:04 PM
im just unfamiliar with using configuring webpack stuff manually
t

turansky

09/28/2023, 11:06 PM
You can find generated scripts inside project
In old versions I also had multiple entries configurations
i

Ivan Cagle (IvanEOD)

09/28/2023, 11:07 PM
okay i will see if i can find some of those... so far i've tried this and it just makes me get errors
a

Artem Kobzar

09/29/2023, 12:56 PM
Also, just want to notice, that IC for per-file could not work in 1.9.20, because it's still in progress, but the production build should.
1
It's really raw, but I hope that I will finish most of the work until 2.0
1
🔝 1
i

Ivan Cagle (IvanEOD)

09/29/2023, 2:35 PM
Thank you 🙂
2 Views