I'm searching for a way to determine in code whether it is being run with jsBrowserDevelopmentRun or jsBrowserProductionWebpack. I saw a suggestion to use multiple html pages and set variables in them, but the method to do that is not obvious.
👍 1
a
Artem Kobzar
10/18/2023, 4:30 PM
I don't feel that we have such intrinsic in our kotlin.js package, but you can make a ticket for it, and it's possible that we would add it.
r
Robert Jaros
10/18/2023, 4:49 PM
You can use webpack
DefinePlugin
for this. Put this in some *.js file in `webpack.config.d`: