title: How to Determine the ASP.NET Core Environment in my Gulpfile.js
body: <p>I am using ASP.NET Core MVC 6 using Visual Studio 2015. In my gulpfile.js script I want to know if the hosting environment is Development, Staging or Production so that I can add or remove source maps (.map files) and do other things. Is this possible?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Relevant issue on <a href="https://github.com/aspnet/Home/issues/724" rel="noreferrer">GitHub</a>.</p>