I have MVC solution with Web side with general users and Admin side for specific users.
I have a lot of JS and CSS files for both Web and Admin side. As I just want to load a lot of Script bundles only when someone logged in, in Admin panel. Those Admin panel scripts should not be loaded when some user visit my website.
As i am loading all the files at BundlesConfig.cs and want, those admin files also loaded for common user as well. i just want to restrict that kind of page overload head.
I tried creating custom BundlesConfig.cs for admin view but stuck with it. Please any one who can help me to optimize the site.
(still have any confusion with question please comment i will update accordingly)
Thank you