Replies: 3 comments 5 replies
|
In my project, I use https://gitlab.com/stephenwade/festival/-/blob/f0d3196c57455eb593234b9dd2da9fd9451b829d/src/actions/setsData.js#L7-16 |
|
For now, we have updated the environment configuration like this: https://github.com/IBM/pwa-lit-template#environment-configuration |
|
I think we could follow a similar convention as snowpack, using |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi team!
Could it make sense to add something like this to modern-web as a plugin?
https://github.com/IBM/pwa-lit-template/compare/archive/dotenv#diff-83720d8f4eb7cdd15edc66184c9d2694dec62a5e92098b2ed5cd623dae3dfb0bR24-R41
I mean, a copy of
process.env(from nodejs) towindow.env(to browser).Maybe a good option would be a rollup plugin that injects a variables object in
window.env?To be able to share it between the
@web/dev-serverand the build process.Related info:
All reactions