I have a ApiCaller js module which generate calls to our api server for data. It has const field API_URL which points to server url. This API_URL const changes for dev and prod environments. So when I need to deploy to dev I need to change that url and vice-versa.
I want these configuration parameters outside the code and during build process I change them dynamically so that we can build with different settings.
I am using webpack to bundle my javascript files.
