If i do
//BundleConfig.cs
bundles.Add(new ScriptBundle("~/Scripts/Home").Include("~/Scripts/Home/Home.js"));
//index.cstml
@section scripts
{
@Scripts.Render("~/Scripts/Home")
}
then the script is not going to get rendered in release mode, it works fine in debug mode without
BundleTable.EnableOptimizations = true;
but if i do
//BundleConfig.cs
bundles.Add(new ScriptBundle("~/bundles/Home").Include("~/Scripts/Home/Home.js"));
//index.cstml
@section scripts
{
@Scripts.Render("~/bundles/Home")
}
then it works fine in both debug and release mode.
Is Scripts/Home
a reserved name or something?
Note: I do not have anything else named ~/Scripts/Home
in BundleConfig.cs