I was looking for some articles on this and I ran into rollup-plugin-dotenv which allows one to use process.env.YOUR_VARIABLE. Do you have any thoughts on this? From my understanding, it uses rollup-plugin-replace behind the scenes
rollup-plugin-dotenv
process.env.YOUR_VARIABLE
rollup-plugin-replace
I did not knew about rollup-plugin-dotenv. Is that this repo or another one? The README is empty.
Anyway, sure if there is such a plugin which would allow the usage of .env variables, that would be super too!
.env
Yeah, that's it. Although I'm a bit curious about how it would work when generating static site using Stencil Js
Sure me too. If you give it a try, let me know how it went!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was looking for some articles on this and I ran into
rollup-plugin-dotenv
which allows one to useprocess.env.YOUR_VARIABLE
. Do you have any thoughts on this? From my understanding, it usesrollup-plugin-replace
behind the scenesI did not knew about
rollup-plugin-dotenv
. Is that this repo or another one? The README is empty.Anyway, sure if there is such a plugin which would allow the usage of
.env
variables, that would be super too!Yeah, that's it. Although I'm a bit curious about how it would work when generating static site using Stencil Js
Sure me too. If you give it a try, let me know how it went!