title: Bundling debug or release scripts automatically
body: <p>Using ASP.NET MVC3 I am bundling &amp; minifying my React scripts. This is working fine but I am wondering if I can include certain files and exclude others automatically by naming them correctly. I can't seem to find any documentation around this. Here's what I have at the moment in my BundleConfig.cs file:</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/react")
      .Include(    
          #if DEBUG
              "~/Scripts/react.debug.js",
              "~/Scripts/react-dom.debug.js",
          #else
              "~/Scripts/react.production.min.js",
              "~/Scripts/react-dom.production.min.js",
          #endif
  ));
  </code></pre>
  
  <p>From what I understand, the bundling &amp; minifcation process ignores .min files. Does it have any other rules around .release or .debug files? I've done some initial testing and I believe it still included the .debug file (hard to tell when it's all being minified.</p>