support multi env files
there're two env files. .env
AAA=aaa BBB=bbb
.env.prod
AAA=prod
and I want get
AAA=prod BBB=bbb
I tried to config in babe.config.js, but no luck
const plugins = [ [ 'inline-dotenv', { path: './env/.env.prod', }, '' ], [ 'inline-dotenv', { path: './env/.env', }, 'inline-dotenv-base' ],
seems that inline-dotenv plugin runs only ONCE
did I miss something else? thanks
the direction of this package is not towards dotenv flow. if that's what you need, you're better off using other packages like (shameless plug) react-native-dotenv
The problem with react-native-dotenv is it doesn't work with process.env. It solves a different problem.
react-native-dotenv is based on this library