brysgo / brysgo/babel-plugin-inline-dotenv

support multi env files

Open
#39 3 comments 10 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.