title: How to make bundles unminify and list individual files when using a cookieless static content server?
body: <p>I have two VS projects, one for the main website and one for a "static content" website where all the css, js, images, and other static content will be stored and accessed via a cookieless domain.</p>
  
  <p>So I have a BundleConfig.cs in my static site that creates all the bundles:</p>
  
  <pre><code>public class BundleConfig
  {
      public static void RegisterBundles(BundleCollection bundles)
      {
          bundles.Add(new StyleBundle("~/bundles/styles").IncludeDirectory("~/app/styles", "*.css", true));
          bundles.Add(new ScriptBundle("~/bundles/scripts").IncludeDirectory("~/app/src", "*.js", true));
      }
  }
  </code></pre>
  
  <p>And in the main site I have another BundleConfig.cs where I point the main site to the static content site like this:</p>
  
  <pre><code>public class BundleConfig
  {
      public static void RegisterBundles(BundleCollection bundles)
      {
          var staticWebsite = ConfigurationManager.AppSettings["StaticWebsite"];
          var versionNumber = ConfigurationManager.AppSettings["VersionNumber"];
  
          Styles.DefaultTagFormat = string.Format("&lt;link href='{0}{{0}}?v={1}' rel='stylesheet'/&gt;", staticWebsite, versionNumber);
          Scripts.DefaultTagFormat = string.Format("&lt;script src='{0}{{0}}?v={1}'&gt;&lt;/script&gt;", staticWebsite, versionNumber);
  
      }
  }
  </code></pre>
  
  <p>Now I can use <code>@Styles.Render("~/bundles/styles")</code> and <code>@Scripts.Render("~/bundles/scripts")</code> which render like this, just the way I want and it works great:</p>
  
  <pre><code>&lt;link href='http://mycookielessdomain.com/bundles/styles?v=1.0.0.0' rel='stylesheet'/&gt;
  &lt;script src='http://mycookielessdomain.com/bundles/scripts?v=1.0.0.0'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The problem I have is that the content is <em>always</em> minified and bundled regardless of whether <code>debug=true</code> or not. Even if I use <code>BundleTable.EnableOptimization = false</code> in both BundleConfig.cs files, <code>@Styles.Render()</code> and <code>@Scripts.Render()</code> still only render one tag each and refer to content that is minified.</p>
  
  <p>I understand that the main site would have no knowledge of the individual files that were bundled in the static content site, but my hope is that there is some way to manually specify these paths in the main site BundleConfig so that the Render() methods can list them individually when optimizations are off... if I can ever get them to turn off, that is.</p>