I'm trying this <Generate one JS file per one Kotl...
# javascript
i
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
With
per-file
granularity you can configure Webpack entries for described use case
1
i
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
It can simplify entry script generation
i
im just unfamiliar with using configuring webpack stuff manually
t
You can find generated scripts inside project
In old versions I also had multiple entries configurations
i
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
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
Thank you 🙂