Julien-R44 / vite-plugin-validate-env

✅ Vite plugin for validating your environment variables
MIT License
164 stars 6 forks source link

Allow loading from the `envDir` as specified in Vite config #6

Closed BenShelton closed 1 year ago

BenShelton commented 1 year ago

Vite allows specifying an alternate directory for env files with the envDir option, instead of always being the root.

Can this be implemented here too instead of always looking in the root for the env.ts file and the .env files themselves?

Julien-R44 commented 1 year ago

Thanks for the info, I didn't know. I'll add this quickly! I should have the time this weekend

Julien-R44 commented 1 year ago

Added and published in @0.2.1 !