title: Ajax Minifier (AjaxMin) - EvalTreatment for JavaScript?
body: <p>So I was just minifying using the AjaxMin.dll in my project on every build/deployment for all js/css files with the <strong>default</strong> settings.  This turned out to be a bad idea.  One of the third party javascript files that we have has a nice eval statement with some variables or parameters being referenced.  When it gets minified, the original variables get renamed and not renamed in the eval statement.  This has caused a big old error in production (FML).</p>
  
  <p>I have decided I need to pick safer settings for the minification process.</p>
  
  <p>The documentation on AjaxMin is very ummm not clear.
  <a href="http://www.asp.net/ajaxlibrary/AjaxMinWithAndEval.ashx" rel="nofollow">http://www.asp.net/ajaxlibrary/AjaxMinWithAndEval.ashx</a></p>
  
  <p>Or maybe i just don't understand it.  I am using the code (with the DLL) and not the command line.</p>
  
  <p>The <code>CodeSettings</code> class has a <code>EvalTreatment</code> class option but I am unsure what is the best option to pick...</p>
  
  <p>From Microsoft (DLL source):</p>
  
  <pre><code>using System;
  
  namespace Microsoft.Ajax.Utilities
  {
      public enum EvalTreatment
      {
          Ignore = 0,
          MakeImmediateSafe = 1,
          MakeAllSafe = 2,
      }
  }
  </code></pre>
  
  <p>I am thinking <code>MakeImmediateSafe</code>(1) or <code>MakeAllSafe</code>(2)?  What do you guys think?  </p>
  
  <p>Thanks in advance!</p>