kHRISl33t / runtime-env-cra

Runtime environment handler for create-react-apps
MIT License
49 stars 23 forks source link

Support comments in .env file #15

Closed evandam closed 2 years ago

evandam commented 2 years ago

Hey @kHRISl33t thanks for the project! I was wondering if it would be possible to support comments in the .env file though? Hoping it's easy enough to filter out lines that start with # so it would allow us to document our environment variables in the code.

Thanks!

seanblonien commented 2 years ago

Simple comments should be supported I believe, take a look at https://github.com/kHRISl33t/runtime-env-cra/pull/6

kHRISl33t commented 2 years ago

Yes. You can do that if you start your line with #