title: How to check ASPNETCORE_ENVIRONMENT in Grunt?
body: <p>I am using ASP.NET Core with <a href="http://gruntjs.com/" rel="nofollow">Grunt</a>. I need to check the project environment. How can I do something like this?</p>
  
  <pre><code>if(ASPNETCORE_ENVIRONMENT === 'Production')
  {
    //do something
  }
  else 
  {
    //do something
  }
  </code></pre>