Is there a way to have the DCE task run but withou...
# javascript
g
Is there a way to have the DCE task run but without minifying? I want to get the least needed readable code possible!
r
I don't think DCE is minifying js code at all
webpack is minifying
and you can probably disable it with some webpack configuration (in
webpack.config.d
).
👍 2
t
If you need same configuration for many subprojects - it will be useful to use webpack plugin
g
ah right, thank you both
i
Yes, DCE is only cut no necessary code, but minifying is responsibility of webpack. Webpack mode can be configured in DSL
Copy code
browser {
   webpackTask {
     mode = org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig.Mode.DEVELOPMENT
   }
}
But be ready, that it will be real development code, not least needed, it is just bundle of all required javascript files.
g
Cool, thank you