title: Can uglify-js remove the console.log statements?
body: <p>I'm using <a href="https://github.com/mishoo/UglifyJS2" rel="noreferrer">uglify-js</a> to minify the source code. I want to remove the console.log statements of the original source code. Is it possible? Or is there any other compressor tool supports this?</p>
  
  <p>I use the code as below in Node.js.</p>
  
  <pre><code>var uglify = require('uglify-js');
  var originalSourceCode = 'var name = function(){var str = "test"; return str}; console.log("log data");';
  var minifiedCode = uglify.minify(originalSourceCode, {
                  fromString : true,
                  mangle: {},
                  warnings: true
              });
  console.log(minifiedCode);
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>$node m.js
  { code: 'var name=function(){var a="test";return a};console.log("log data");',
    map: 'null' }
  </code></pre>
  
  <p>In the minified code the console.log isn't removed.</p>