I just started to think about the layout for the build environment of a javascript application that will become quite big in the future. I solved quite a lot of issues but one thing I still have not found a good solution for is the way how to deal with the script includes in my html pages. Maybe I am just plain stupid but I do not get it:
When developing the app I work with many little javascript files which all need to be included in my html page. When it comes to deployment I will combine/minfy all the javascript into a small number of script files. How do I deal with the changed number of script includes and the changed names of the includes? Do I adjust them manually? I hope not! Are there tools out there doing that job for me? Am I missing something very obvious?
BTW: The same problem is with CSS...
Any ideas and thoughts on this would be extremely helpful.