Replies: 3 comments 5 replies
-
In my project, I use https://gitlab.com/stephenwade/festival/-/blob/f0d3196c57455eb593234b9dd2da9fd9451b829d/src/actions/setsData.js#L7-16 |
Beta Was this translation helpful? Give feedback.
-
For now, we have updated the environment configuration like this: https://github.com/IBM/pwa-lit-template#environment-configuration |
Beta Was this translation helpful? Give feedback.
-
I think we could follow a similar convention as snowpack, using |
Beta Was this translation helpful? Give feedback.
-
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-server
and the build process.Related info:
Beta Was this translation helpful? Give feedback.
All reactions