title: Prepend CDN url to mvc 4 bundler output
body: <p>Using the built in MVC4 bundler, how do I prepend my CDN url to the link tags it produces?  I've setup Amazon Cloudfront so that it pulls assets from my webserver when first requested.  So when I define a bundle like so:</p>
  
  <pre><code> bundles.Add(new StyleBundle("~/Content/css").Include(
      "~/Content/reset.css",
      "~/Content/960_24_col.css",
      "~/Content/Site.css"
   ));
  </code></pre>
  
  <p>When deployed, I can reference it thus:</p>
  
  <pre><code>http://[cloundfrontid].cloudfront.net/Content/css?v=muhFMZ4thy_XV3dMI2kPt-8Rljm5PNW0tHeDkvenT0g1
  </code></pre>
  
  <p>Now I just need to change the links produced by the bundler from being relative to absolute links pointing to my CDN.</p>
  
  <pre><code>  &lt;link href="[INSERT_CDN_URL_HERE]/Content/css?v=muhFMZ4thy_XV3dMI2kPt-8Rljm5PNW0tHeDkvenT0g1" rel="stylesheet"/&gt;
  </code></pre>
  
  <p>I think it may be possible to rewrite the path using IBundleTransform but I can't find any examples of this.</p>
  
  <p>NOTE:
  Just to be clear, I know you can specify a CDN link for a bundle, but that only works if the bundle can be replaced by a static link.</p>