title: Grunt Plugin for Debug, Test and Release Conditions
body: <p>Is there a Grunt Plugin where I can write in my Files (e.g. *.js Files) something link</p>
  
  <pre><code>#if DEBUG 
  var apiAddress = "http://localhost:8080/api";
  #elif RELEASE
  var apiAddress = "http://mywebsite.com/api";
  #endif
  </code></pre>
  
  <p>so when I run </p>
  
  <pre><code>grunt serve
  </code></pre>
  
  <p>The variable should be <em><a href="http://localhost:8080/api" rel="nofollow">http://localhost:8080/api</a></em></p>
  
  <p>but if I run </p>
  
  <pre><code>grunt build
  </code></pre>
  
  <p>The variable should be <em><a href="http://mywebsite.com/api" rel="nofollow">http://mywebsite.com/api</a></em>, the <em>#if DEBUG</em>-Part should be deleted</p>