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,215 times
5
Niharika
- 1,188
- 15
- 37
Richard Ashe
- 51
- 1
- 2
-
maybe this answer helps: https://stackoverflow.com/a/45467062/4908847 – szaman Mar 22 '18 at 16:53