title: How to remove comments with BundleTransformer YuiJsMinifier
body: <p>I am using <a href="http://bundletransformer.codeplex.com" rel="nofollow noreferrer">BundleTransformer</a> to minify <code>css</code> and <code>js</code> resources</p>
  
  <pre><code>        &lt;yui&gt;
              &lt;css compressionType="Standard" removeComments="true" lineBreakPosition="-1" /&gt;
              &lt;js compressionType="Standard" obfuscateJavascript="true" preserveAllSemicolons="false" disableOptimizations="false" ignoreEval="false" severity="0" lineBreakPosition="-1" encoding="UTF8" threadCulture="en-us" /&gt;
          &lt;/yui&gt;
  </code></pre>
  
  <p>As you can see for <code>css</code> it is possible to specify <code>removeComments="true"</code>
  But in <code>js</code> there is no such option.</p>
  
  <p>I red that YUI js compressor <a href="https://stackoverflow.com/questions/3547976/yui-remove-javascript-comments">removes comments by default</a>. Yes it is kind of removes, but it is still leave comments like that:</p>
  
  <pre><code>/* NUGET: BEGIN LICENSE TEXT
   *
   *Bla bla bla
   *
   * NUGET: END LICENSE TEXT */
  
  /*!
   * Bla
   * Licensed under http://www.apache.org/licenses/LICENSE-2.0
   */
  </code></pre>
  
  <p>Looks like there is no way to force YIU js minifier to remove comments.</p>
  
  <p><a href="https://github.com/yui/yuicompressor" rel="nofollow noreferrer">https://github.com/yui/yuicompressor</a> :</p>
  
  <blockquote>
    <p>C-style comments starting with /*! are preserved. This is useful with
    comments containing copyright/license information</p>
  </blockquote>
  
  <p>Is there anything I can do by using <a href="http://bundletransformer.codeplex.com" rel="nofollow noreferrer">BundleTransformer</a> to completely remove all kind of comments in bundled minified output files? <a href="https://developers.google.com/speed/pagespeed/" rel="nofollow noreferrer">Google page speed</a> strongly recommended me to do that.</p>