brysgo / brysgo/babel-plugin-inline-dotenv
support multi env files
Open
- Dominant language
- JavaScript
- Stars
- 123
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.