title: How to use Gulp with Razor and Layout.cshtml
body: <p>What is the best way to use Gulp in MVC template files? The problem is that my layout.cshtml files contain links to JavaScript files, gulp would need to modify these files to point at the optimized minified files. The problem is that I cannot see how I can use gulp to modify these files to point at the optimized files for debug and release because the source file would need to be the destination file and the mechanism would need to work with TFS.  The best idea I have had would be to use the bundling mechanism. Before investing time into this I want to see if there are simpler alternatives.</p>