WebpackEnvPlugin
env.json
by own env variables
emit a install
yarn add webpack-env-plugin# or npm install webpack-env-plugin
use
const EnvPlugin = // webpack.config.js plugins: filename:'env.json' // default env.json env: a:1 b:2 verbose:true // default:true
it will produce a env.json in your dist folder env.json