System.Web.Optimization
on Visual Studio 2013 was giving us Bundling on javascript files and the best part of that was allowing us to go with indiv
After reading through the documentation and examples provided here, I immediately had the same question. After the bundling and minification steps, the docs just say "Now reference the files".
I did quite a bit of research trying to find a best practice to use for conditionally referencing scripts for development and others for production. The options I like the most are:
Documentation for WireDep and gulp-inject are provided in their respective links.
To use the environment tag helper, make sure your _GlobalImport view file has the following line in it.
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
Then use it like this:
The environment names correspond to the ASP.NET 5 environment variable ASPNET_ENV.