Could someone here share their gradle setup for ne...
# javascript
b
Could someone here share their gradle setup for new kotlin.js plugin?
h
I’m still trying to work it out. It’s a bit tricky with no documentation available. Trying to read the source code for the plugin.
b
Is there a public repo for it?
For the plugin source code i mean
d
Here is an example of what I have: and in my webpack.config.d folder I have a files called devServer-config.js, that has the following contents Hope thats of some help
devServer-config.js
b
Yeah, that's not much help. It still doesn't have a propper devserver in gradle config
t
@Big Chungus Do you use
dce
plugin?
f
@Big Chungus you use it in gradle files too
b
How do you set mode =production on webpack task?
It's a KotlinWebpackConfig prop
Or how do you build prod bundle in general?
1
Also dce plugin does not seem to be working in MPP with the new js plugin setup
Not working as in not doing anything
t
production
mode can be applied only via webpack config (gradle option currently has no effect)
d
@fcosta within gradle I could not set
"historyApiFallback": true
so I had to resort to the devServer-config.js