Support for webpack.config.js options
I use this webpack configuration for KMP. Currently I cannot set these options when using the Vite plugin.
Example project: https://github.com/spxbhuhb/adaptive-mpw-example
if (config.devServer) {
config.devServer = {
...config.devServer,
// open: false, // comment this out to disable opening new browser windows at startup
port: 3000,
host: "127.0.0.1", // comment this out to have the dev server listen on all interfaces
proxy: [
{
context: ['/adaptive/service'],
target: 'ws://127.0.0.1:8080',
ws: true,
secure: false
},
{
context: ['/adaptive/client-id'],
target: 'http://127.0.0.1:8080',
ws: false,
secure: false
},
{
context: ['/adaptive/download'],
target: 'http://127.0.0.1:8080',
ws: false,
secure: false
}
],
historyApiFallback: {
index: 'index.html',
disableDotRule: true
}
}
}