diff --git a/RequireJsNet.Docs/Views/Shared/_Layout.cshtml b/RequireJsNet.Docs/Views/Shared/_Layout.cshtml index cc3b063..4d0b160 100644 --- a/RequireJsNet.Docs/Views/Shared/_Layout.cshtml +++ b/RequireJsNet.Docs/Views/Shared/_Layout.cshtml @@ -48,6 +48,18 @@ - @Html.RenderRequireJsSetup(Url.Content("~/Scripts"), Url.Content("~/Scripts/require.js"), Server.MapPath("~/RequireJS.release.config")) + @if (HttpContext.Current.IsDebuggingEnabled) + { + @Html.RenderRequireJsSetup(Url.Content("~/Scripts"), + Url.Content("~/Scripts/require.js"), + Server.MapPath("~/RequireJS.config")) + } + else + { + @Html.RenderRequireJsSetup(Url.Content("~/Scripts"), + Url.Content("~/Scripts/require.js"), + Server.MapPath("~/RequireJS.release.config")) + } +