Hi
I'm having issues trying to change the port of the DevServer I have a configuration as follows
kotlin {
js {
useCommonJs()
browser {
binaries.executable()
webpackTask {
cssSupport.enabled = true
devServer = KotlinWebpackConfig.DevServer(true, false, true, true, false, 3000, null, listOf("$projectDir/src/jsMain/resources"))
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
}
when I run
jsBrowserDevelopmentWebpack
I can see the changes have taking in the generated webpack.config.js. However, when I run
jsBrowserDevelopmentRun
the configuration seems to get overwritten again. Is anyone having success is this area? Im using the latest 1.4-M3