Currently we concatenate and minify our individual JavaScript files into one bundle locally - using Chirpy - and then check the bundle into version control (we are using TFS with Gated checkins).
Our installer then deploys this bundle.
But this is causing a number of problems:
- is it possible to check in a bundle which does not correspond to the source files.
- we have merge problems with our 'Gated Checkin'. Because if two changesets in the checkin queue both contain a new bundle, the second will always conflict with the first.
We have a couple of other ideas: the installer could generate the bundles during deployment, or the server could generate the bundles at runtime as a startup process.
But surely this is a common problem, what is best practice?