Attila Király
08/03/2021, 4:10 PMturansky
08/03/2021, 4:54 PMAttila Király
08/03/2021, 5:02 PMturansky
08/03/2021, 5:31 PMsrc/main/resources
. Kotlin/JS will copy it in webpack build dir
V2. You can copy script in webpack build dir via processResources
taskAttila Király
08/03/2021, 6:34 PMAttila Király
08/03/2021, 7:07 PM@JsModule("./myfoobar.js")
@JsNonModule
external fun foo()
Note that foo() doesn't exist in my myfoobar.js, I only need it to have a place to add the annotations (using file annotations doesn't work).
Now myfoobar.js gets included into the webpack bundle.
Thanks for the help.turansky
08/03/2021, 7:22 PMAttila Király
08/03/2021, 8:15 PMturansky
08/03/2021, 9:01 PMturansky
08/03/2021, 9:02 PMturansky
08/03/2021, 9:03 PMAttila Király
08/04/2021, 8:03 PMconfig.entry.main.push("./../../../../src/main/js/mybar.js")
into the webpack.config.d folder