I'm developing a simple CMS with Theme Support. I'm trying to find a way to create css and js bundles for each theme.
I don't want to create Bundles in App_Start.
Something like put my code in _ViewStart.html like this :
@{ Layout = "~/Views/Shared/_Layout.cshtml"; Add(new ScriptBundle("~/bundles/myscripts").Include( "~/Scripts/myscript1.js", "~/Scripts/myscript2.js")); //and so on... } Is there any way to do this...?