Robert Jaros
12/12/2019, 10:42 AMkotlinFrontend {
define("PRODUCTION", true)
}
How to achieve the same in the new Kotlin/JS plugin?Ilya Goncharov [JB]
12/12/2019, 11:25 AMwebpack.config.d
folder
config.mode = 'production' // set production mode to webpack
config.devtool = 'source-map' // or even false - it configure source map not to inline into bundle
Since 1.3.70 production and development build will be builtin
You can just run necessary task for development or for productionRobert Jaros
12/12/2019, 11:30 AMjs
file in webpack.config.d
?Robert Jaros
12/12/2019, 11:31 AMif (defined.PRODUCTION) {
// ...
}