In ASP.NET MVC5 application, I have multiple CSS and JS files that I'm trying to bundle them using below code
bundles.Add(new StyleBundle("~/myBundles/css").Include( "~/lib/css/nivo-slider.css", "~/css/core.css", "~/css/shortcode/shortcodes.css", "~/style.css", "~/css/responsive.css", "~/css/color/color-core.css", "~/css/custom.css", "~/myDefaultSS.css" )); I use it in _Layout page like this:
@Styles.Render("~/myBundles/css") When using it, I see below in the hmlt source of my page
<link href="/myBundles/css?v=xt5fim6H60Umm4DuM_5iVudeIEOkrcbgXzG0o3CHtlU1" rel="stylesheet"/> After using this, my web pages are not showing properly. I think it's because I am bundling files from different directories. Is that right? How can I resolve the issue?
<link href="/lib/css/nivo-slider.css" rel="stylesheet"/> .../myBundles/css?v=xt5fim6H60Umm4DuM_5iVudeIEOkrcbgXzG0o3CHtlU1. it seem its optimized to have one css link. Please test if you set debug=true as:<compilation debug="true" targetFramework=.../>inweb.config:<configuration><system.web>