title: Exclude debug JavaScript code during minification
body: <p>I'm looking into different ways to minify my JavaScript code including the regular <a href="https://en.wikipedia.org/wiki/Minification_%28programming%29#History" rel="noreferrer">JSMin</a>, Packer, and <a href="http://en.wikipedia.org/wiki/Yahoo!_UI_Library" rel="noreferrer">YUI</a> solutions. I'm really interested in the new <a href="http://code.google.com/closure/compiler/" rel="noreferrer">Google Closure Compiler</a>, as it looks exceptionally powerful.</p>
  
  <p>I noticed that <a href="http://dean.edwards.name/packer/" rel="noreferrer">Dean Edwards packer</a> has a feature to exclude lines of code that start with three semicolons. This is handy to exclude debug code. For instance:</p>
  
  <pre><code>;;;     console.log("Starting process");
  </code></pre>
  
  <p>I'm spending some time cleaning up my codebase and would like to add hints like this to easily exclude debug code. In preparation for this, I'd like to figure out if this is the best solution, or if there are other techniques.</p>
  
  <p>Because I haven't chosen how to minify yet, I'd like to clean the code in a way that is compatible with whatever minifier I end up going with. So my questions are these:</p>
  
  <ol>
  <li><p>Is using the semicolons a standard technique, or are there other ways to do it?</p></li>
  <li><p>Is Packer the only solution that provides this feature?</p></li>
  <li><p>Can the other solutions be adapted to work this way as well, or do they have alternative ways of accomplishing this?</p></li>
  <li><p>I will probably start using Closure Compiler eventually. Is there anything I should do now that would prepare for it?</p></li>
  </ol>