Replies: 2 comments
-
If you're using the parcel API, you can pass down environment variables |
Beta Was this translation helpful? Give feedback.
-
I'm also keen to know if this is possible dynamically at build time. As has been mentioned above, it's possible to pass In order to create a build with different environment variables this seems to require creating a new Is it possible to pass ENV variables (or just arbitrary data) into a build at build time, or is it otherwise possible to change a |
Beta Was this translation helpful? Give feedback.
-
With Webpack I can use DefinePlugin to define ENV variable at build time with JS:
According to Parcel documentation it's impossible to achieve without a transformer plugin. But who knows what plugin
does this? There is "parcel-transformer-inject-env", but it does nothing without Plasmo Framework.
How such a simple task is usually done with Parcel?
Beta Was this translation helpful? Give feedback.
All reactions