Managing JavaScript dependencies with CDN in ASP.NET
<p>Generally speaking, individual JavaScript files that a page uses should be combined into a single filed and minified. To this end, we have an <code>AssetController.ScriptTag()</code> that's used like this:</p>

<pre><code>&lt;%= ScriptTag
(
    "/js/global.js",
    "/js/accounts.js",
    "/js/googmaps.js"
)%&gt;
</code></pre>

<p>The output of this method is a single URL that returns a single, minified file from a GET. This worked great until we decided that we needed put our resources like .js and .css files on a CDN. Now, we need to generate these combined, minified JS files at build time, and push the results to the CDN.</p>

<p>How do most people accomplish this--how do they incorporate the generation of these files into their build and deploy?</p>
