0

I am using ASP.NET Core with Grunt. I need to check the project environment. How can I do something like this?

if(ASPNETCORE_ENVIRONMENT === 'Production')
{
  //do something
}
else 
{
  //do something
}
Set
  • 47,577
  • 22
  • 132
  • 150
John
  • 1
  • 1
  • 1
    Possible duplicate of [Accessing the process / environment from a grunt template](http://stackoverflow.com/questions/13989978/accessing-the-process-environment-from-a-grunt-template) – Set Oct 17 '16 at 13:02
  • i need something like this http://stackoverflow.com/questions/31228947/how-to-determine-the-asp-net-core-environment-in-my-gulpfile-js – John Oct 17 '16 at 13:31

0 Answers0