How can I have JavaScript bundling working from another folder (aside from the Script folder). If I do this:
bundles.Add(new ScriptBundle("~/bundles/search").Include("~/Views/Search/*.js"));
The browser tells me the javascript file can't be found. Is it possible to do this or do all my sripts have to be in the Scripts folder?
Basically I want my Javascript included in my View subfolders
You need to change
web.config
inViews
folder according this answer: In ASP.NET MVC, how can I load script from my view folder?Good example from Ashley Lee: