Bundle file location in ASP.NET MVC

戏子无情 提交于 2019-12-18 12:59:17

问题


Where are the generated bundle files placed?

 bundles.Add(new ScriptBundle("~/bundles/jqueryall")
   .IncludeDirectory("~/scripts/", "*.js", true)

回答1:


There are no files, bundles are stored in-memory.

Can you please explain why you expect the bundles to be files? :-)




回答2:


They are bundled up dynamically (in Memory I assume) and served to the client being sent down to the client as a single item (you should the single JS file see it if you use fiddler of F12 => Network).



来源:https://stackoverflow.com/questions/19009096/bundle-file-location-in-asp-net-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!