title: ASP.NET MVC 4 is bundling js files in Debug Mode
body: <p>"The issue is that, by default, asp.net mvc DOES NOT bundle the css and js files in debug mode. But our css and js files ARE getting bundled in the debug mode."</p>
  
  <p>For some reason, all the css and js files are being bundled in debug mode. It started few days ago. We have a large team with several developers and its hard to find out what changed in the last few days because there are several changes submitted to the repository. However I didn't find any significant changes in the BundleConfig and Global.asax.cs.</p>
  
  <p>When the application is running in debug mode, BundleTable.EnableOptimizations returns a false.</p>
  
  <p>To my understanding when debug is set to true then bundling does not happen.
  <code>&lt;compilation debug="true" targetFramework="4.5"&gt;</code></p>
  
  <p>So far I haven't found a single occurrence of this issue on Google. Is this a very unique problem?</p>
  
  <p>Ideally instead of a workaround I would like to fix it. Finding the cause is the actual problem here. Any pointers on where I should start looking for the fix would be appreciated. Thank you.</p>
  
  <p><strong>Edit:</strong> My question is similar to but not exactly the same as <a href="https://stackoverflow.com/questions/11952491/asp-net-mvc-4-app-with-bundling-and-minification-why-is-minification-enabled-in">ASP.NET MVC 4 app with bundling and minification, why is minification enabled in debug mode?</a>
  Someone please remove the "This question may already have an answer here:" tag.
  In my case the bundle paths are already starting with a "~"</p>
  
  <p>Template:
  <code>@Styles.Render("~/Content/css")
  @Scripts.Render("~/bundles/js")</code></p>
  
  <p>Bundle Config:
  <code>bundles.Add(new Bundle("~/Content/css").Include("~/Content/*.css"));</code>
  <code>bundles.Add(new Bundle("~/bundles/js").Include("~/Scripts/myproj.*"));</code></p>