In my index.html I have a few script tags, that I need to switch depending on if it's building for dev or prod. Currently I'm manually doing this and I'm sure there is a better way. This is an example:
Can I automate this somehow?
<!--<script src="//localhost:3000/socket.io/socket.io.js"></script> uncomment for dev, comment the other tag-->
//window.BASE = 'http://localhost:3000/'; <-- uncomment for dev, comment the next line
window.BASE = 'https://myapp.com';
window.BASE_API = window.BASE + 'api/';