title: ASP.NET Bundling: Run IBundleTransform even when not optimizing
body: <p>We're using <code>System.Web.Optimization</code> bundling to bundle &amp; compress our JS and CSS.</p>
  
  <p>We also use a custom <code>IBundleTransform</code> implementation in addition to to the existing <code>JsMinify</code> and <code>CssMinify</code> to do some fancy stuff to the JS (replacement of certain placeholders) before sending it to the browser.</p>
  
  <p>Everything works fine as long as we're running in Release mode, because then the bundling and optimizing kicks in. But in Debug mode (which is nice for debugging ;) it seems to completely ignore all the specified <code>IBundleTransform</code> (makes sense in most use-cases, I guess).</p>
  
  <p>Is there any way to <em>always</em> run our own <code>IBundleTransform</code>, even in Debug mode, but run the other (default) bundling algorithms (<code>JsMinify</code>, <code>CssMinify</code>) only when I really want to optimize (in Release mode)?</p>