Jonghakseo / chrome-extension-boilerplate-react-vite

Chrome Extension Boilerplate with React + Vite + Typescript
MIT License
2.26k stars 329 forks source link

feat/add config for env variables #682

Closed PatrykKuniczak closed 1 month ago

PatrykKuniczak commented 1 month ago

* Please fill in the required items.

Priority*

Purpose of the PR*

People including me, struggling how to use env, and as we can see it's simple, and i want to simplify it for everyone.

Changes*

Change path of envDir for tsconfigs

How to check the feature

Following the steps from new DOCS(part of README.md) try to console.log() it

I was trying to create some sugar like env.VITE_EXAMPLE or extension.env.VITE_EXAMPLE but i think it will be overkill and can confusing users, because of the Vite docs.