Let's say you have different settings in development vs. production ( different options, different timings for setInterval/setTimeout ). How do you handle changes between configurations?
I was thinking of using a generator, and everytime I switch between environments, I could regenerate the relevant js files. What is your approach?