DEV Community

[Comment from a deleted post]
Collapse
 
newtonmunene_yg profile image
Newton Munene

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

Collapse
 
daviddalbusco profile image
David Dal Busco

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!

Collapse
 
newtonmunene_yg profile image
Newton Munene

Yeah, that's it. Although I'm a bit curious about how it would work when generating static site using Stencil Js

 
daviddalbusco profile image
David Dal Busco

Sure me too. If you give it a try, let me know how it went!