title: How do I remove some javascript during grunt-usemin compilation
body: <p>I have code that makes it easy and fast to write/test code, that code does not belong in my production code (mostly it mocks out the server so I only need the grunt server).</p>
  
  <p>Two parts to this, one is how to I remove parts of a script</p>
  
  <pre><code>angular.module('nglaborcallApp', [
  'ngCookies',
  'ngResource',
  'ngSanitize',
  'ngRoute',
  'server_mocks',  // Don't want this line in the production build
  'dialogs'
  </code></pre>
  
  <p>]</p>
  
  <p>and then a section of index.html that needs to go away</p>
  
  <pre><code>&lt;!-- build:js({.tmp,app}) scripts/mocks/mocks.js --&gt;
  &lt;script type='text/javascript'&gt;var Mocks = {};&lt;/script&gt;
  &lt;script src='scripts/mocks/jobs.js'&gt;&lt;/script&gt;
  &lt;script src='scripts/mock.js'&gt;&lt;/script&gt;
  &lt;!-- endbuild --&gt;
  </code></pre>
  
  <p>So this might be 2 questions.   I don't see anything in the usemin documentation about this so I'm guessing there is some other tool, but I don't know what the name of that tool is.</p>
  
  <p>The other possibility is I'm doing it wrong and rather than inject this mocking object, I should be doing it with the grunt server.  What is everyone else doing?</p>