Sean Proctor
10/18/2023, 4:05 PMArtem Kobzar
10/18/2023, 4:30 PMRobert Jaros
10/18/2023, 4:49 PMDefinePlugin
for this. Put this in some *.js file in `webpack.config.d`:
;(function() {
const webpack = require('webpack')
config.plugins.push(new webpack.DefinePlugin({
build_mode: JSON.stringify(config.mode),
}));
})();
external val build_mode: String
in your Kotlin code.Sean Proctor
10/18/2023, 8:41 PMturansky
10/19/2023, 6:32 AM