I've set up an ASP.NET 5 project in Visual Studio and created a gulpfile.js which I use to build my typescript and less files.
For release builds, I want to uglify and concat my javascripts, and for debug I want to include my typescript- and maps in my output folder.
Is there a way to 'tell' gulp the current configuration? I've seen some mention of setting the NODE_ENV environment variable, but thus far the solutions I've seen arent optimal; they require using the command line before starting the IDE, etc.
The closest solution I've seen is here: http://www.colinsalmcorner.com/post/gulp--workaround-for-handling-vs-solution-configuration
This does, however, mean that I can no longer utilize the Task Runner Explorer which is built-in in the IDE
See Question&Answers more detail:os