title: ScriptBundle adding both full and minified file in debug mode
body: <p>I have the following ScriptBundle defined in BundleConfig.cs-</p>
  
  <pre><code>    public class BundleConfig
      {
          public static void RegisterBundles(BundleCollection bundles)
          {
            bundles.Add(new ScriptBundle("~/js/yepnope").Include(
                  "~/Scripts/yepnope.{version}.js"));
         }
      }
  </code></pre>
  
  <p>It isn't in fact the only bundle, but that is all in there that is pertinent to the question - the rest is just other bundle definitions.</p>
  
  <p>When in "debug" mode as set in the web.config-</p>
  
  <pre><code>&lt;compilation debug="true" targetFramework="4.5"&gt;
  </code></pre>
  
  <p>Both the full and minified versions of the script are sent to the browser-</p>
  
  <pre><code>&lt;script src="/Scripts/yepnope.1.5.4-min.js"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/yepnope.1.5.4.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The script is added using the HTML helper like so-</p>
  
  <pre><code>@section HeadScripts
  {
      @Scripts.Render("~/js/yepnope")
  }
  </code></pre>
  
  <p>This is an MVC4 project running in Visual Studio 2012 on Windows 7 Professional 64-bit.</p>
  
  <p>Whatever I do I cannot get the {version} wildcard to behave as described in the <a href="http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification" rel="nofollow">Microsoft documentation</a>-</p>
  
  <blockquote>
    <p>Note: Unless EnableOptimizations is true or the debug attribute in the
    compilation Element  in the Web.config file is set to false, files
    will not be bundled or minified. Additionally, the .min version of
    files will not be used,  <strong>the full debug versions will be selected</strong>.</p>
    
    <p>For ASP.NET MVC 4, this means with a  debug configuration, the file
    jquery-1.7.1.js will be added to the bundle. In a release
    configuration,  jquery-1.7.1.min.js will be added. The bundling
    framework follows several common conventions such as:</p>
    
    <ul>
    <li><strong>Selecting “.min” file for release when “FileX.min.js” and “FileX.js”
    exist</strong>. </li>
    <li><strong>Selecting the non “.min” version for debug</strong>. </li>
    <li>Ignoring “-vsdoc”
    files (such as jquery-1.7.1-vsdoc.js), which are used only by
    IntelliSense. </li>
    </ul>
    
    <p>The {version} wild card matching shown above is used to
    automatically create a jQuery bundle with the appropriate  version of
    jQuery in your Scripts folder.  In this example, using a wild card
    provides the following benefits:</p>
    
    <ul>
    <li>Allows you to use NuGet to update to a newer jQuery version without
    changing the preceding bundling code or jQuery references in your view
    pages. </li>
    <li><strong>Automatically selects the full version for debug configurations
    and the ".min" version for release builds.</strong></li>
    </ul>
  </blockquote>
  
  <p>If I add "EnableOptimizations" it seems to behave as expected.</p>
  
  <p>Has anyone else noticed this or found a solution?</p>