Rasmus Plaubor
10/13/2020, 11:35 AMExecute either of these tasks to obtain the respective artifacts for development or production.But is there a way to set up build types via gradle, such that one can run
browserDevelopmentWebpack
when running locally and browserProductionWebpack
when running for production somehow? In Android you have build variants https://developer.android.com/studio/build/build-variants.
Using raw webpack you can do i.e.
webpack --mode=development
But is there a way to do something like this for KotlinJS via gradle?Rasmus Plaubor
10/13/2020, 11:50 AMRobert Jaros
10/13/2020, 12:42 PMRobert Jaros
10/13/2020, 12:43 PMRobert Jaros
10/13/2020, 12:44 PMRobert Jaros
10/13/2020, 12:51 PMindex.html
files with some global JS variables defined inside them.Rasmus Plaubor
10/13/2020, 1:01 PMbrowserDevelopmentWebpack
locally, and browserProductionWebpack
in production. I feel like that must be a pretty common use case?Cheick Kante
12/15/2022, 9:30 PM