Any ideas on how to use environment variables in the index.html
file. I need to include .js script
A if the environment is prod and script B if the environment is anything else. Otherwise I will need to manually change the index.html
file before deployment.
Asked
Active
Viewed 4,109 times
5
![](../../users/profiles/6271729.webp)
Niharika
- 1,148
- 13
- 34
![](../../users/profiles/7505790.webp)
Richard Ashe
- 51
- 1
- 2
-
maybe this answer helps: https://stackoverflow.com/a/45467062/4908847 – szaman Mar 22 '18 at 16:53