Edit: we are using VS2012, but the general principle should work
Although this is not a direct answer to your question, this is the work we encountered:
Create a module for the files you want to minimize and link. Name it for discussion base_module.
Create scriptin_layout.cshtml
function requireBaseModulesDebug(func) {
func();
}
function requireBaseModulesRelease(func) {
require(["js_modules/base_module"], func);
}
@if (HttpContext.Current.IsDebuggingEnabled)
{
<text>requireBaseModules = requireBaseModulesDebug;</text>
}
else
{
<text>requireBaseModules = requireBaseModulesRelease;</text>
}
script , :
requireBaseModules(function () {
require(['jQuery'], function ($) {
});
});