In Microsoft MVC4, I see something called bundling to minimize and cache static resources such as CSS and JavaScript . In the ScriptBundle method ScriptBundle I see the first parameter, which is called virtual path , and it should only be relative.
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-1.*"));
For example, ~/bundles/jquery in the above code.
I have one question, how bundling use this virtual path ? Is it used for something like file caching?
c # asp.net-mvc-4 bundling-and-minification
Afshin mehrabani
source share