I have in webpack.config.js
:
module.exports = {
entry: {
index: "./src/index.js",
content: "./src/content.js"
},
mode: "production", // How do I access this value from the React code?
devtool: 'inline-source-map',
...
Depending on whether the mode
is 'development'
or 'production'
, I need to use a different client ID for PayPal (either sandbox or real). I would like to avoid duplication. So, how can I access that value from my React code?