Webpack Plugin with the same concept as DefinePlugin, but apply after bundle.
yarn add --dev define-after-bundle-webpack-plugin
const { DefineAfterBundleWebpackPlugin } = require('define-after-bundle-webpack-plugin')
module.exports = {
...
plugins: [
...,
new DefineAfterBundleWebpackPlugin({
'<Value to be replaced>': '<Value to replace>',
})
]
}