i'm migrating from kotlin2js/frontend/dce to org.jetbrains.kotlin.js. How do I set webpack into production mode?
t
turansky
03/03/2020, 7:19 AM
webpack.config.d
folder + following script
Copy code
config.mode = 'production'
turansky
03/03/2020, 7:21 AM
Do you have single subproject?
i
Ilya Goncharov [JB]
03/03/2020, 8:21 AM
Since 1.3.70 (in eap stage now) webpack has production mode and DCE integrated by default for build, and development for dev-server
Additionally, you can set mode via dsl
Thanks! Went with the EAP since I was planning on doing that next anyway. (And no I have about 8 JS Gradle subprojects in this repo but only 3 are leafs that need production bundles)
t
turansky
03/03/2020, 4:29 PM
If you don't need DCE & Webpack for some of then than you can use