Skip to content

feat(parser): add support for env inline comments#512

Open
Rickyc81 wants to merge 1 commit intomrsteele:masterfrom
Rickyc81:master
Open

feat(parser): add support for env inline comments#512
Rickyc81 wants to merge 1 commit intomrsteele:masterfrom
Rickyc81:master

Conversation

@Rickyc81
Copy link

This PR allows dotenv-webpack to accept inline comments like this:

PORT=8080 #8081 8082

In this case, everything after # will be excluded from the value.
fix #507

Copy link
Owner

@mrsteele mrsteele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! It's really great and I like it!

One request - Can we add unit tests that cover this requirement? I don't want to support this and accidentally break it along the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotenv inline comments are not supported

2 participants