Support Environment variables in HTML #892
Replies: 3 comments 2 replies
-
Sounds interesting! We actually implemented this already for Note: To match our existing env variable support, we would only support Compatibility with Create React App is a goal, so this feature request makes sense to me. Spinning into an issue to prioritize! |
Beta Was this translation helpful? Give feedback.
-
Fred filed an issue here: #898. A pending pull request to implement replacing environment variables in HTML is here: #900 |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
CRA support environment variables in HTML but it seems this feature is not yet implemented in Snowpack. For example:
Running
SNOWPACK_APP_NAME="My App" SNOWPACK_BUILD_TIME="$(date +%s%3N)" snowpack build
does not seem to replace the variables in output filebuild/index.html
.Beta Was this translation helpful? Give feedback.
All reactions