How to configure jsBrowserWebpack gradle task in a mpp

Hi,

I’m working on a mpp targeting js and jvm and i’ve been trying to reduce the size of the js file that gets generated by webpack.

The gradle task jsBrowserWebpack is responsible for this, but i don’t know how to configure it.
This task seems to be the same as the browserWebpack task you get when you create a kotlinjs project.

I’ve found a discussion about this but they were using the kotlin-frontend-plugin.

any help is appreciated.

What exactly do you need?
If you want to configure webpack itself you can create webpack.config.d directory in the project root and drop config snippets in that directory (in regular format of webpack snippets with .js extension)

Thank you, that seems to work.

I’m not familiar with webpack so i was thinking that maybe you could configure it in gradle.

1 Like