Recently, my local copy of the project completely lost most of its style. Spent me figuring this out, since most of the styles were done in one file, and the rest were minor things like Kendo and the jQuery user interface.
Other, minor material was not added to the page. I thought the styles were changed by another developer (they didn’t affect this project at that time), who tested only the Web API material, and not the user interface, so that it could destroy it and never knew, but I found a problem: only the site.css file site.css included in the kit and none of the others. I even tried reordering the order of the CSS files included in the kit, and ONLY including site.css .
I rebuilt the project, cleared the cache, etc., so it definitely saw the changes. I remember updating some NuGet packages or VS packages or something recently - maybe even an MVC package?
My question is: has something changed that made this happen? What causes this?
EDIT : Code from BundleConfig.cs :
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/site.css", "~/Content/themes/kendo/kendo.common.min.css", "~/Content/themes/kendo/kendo.default.min.css", "~/Content/themes/base/minified/jquery.ui.core.min.css", "~/Content/themes/base/minified/jquery.ui.resizable.min.css", "~/Content/themes/base/minified/jquery.ui.selectable.min.css", "~/Content/themes/base/minified/jquery.ui.accordion.min.css", "~/Content/themes/base/minified/jquery.ui.autocomplete.min.css", "~/Content/themes/base/minified/jquery.ui.button.min.css", "~/Content/themes/base/minified/jquery.ui.dialog.min.css", "~/Content/themes/base/minified/jquery.ui.slider.min.css", "~/Content/themes/base/minified/jquery.ui.tabs.min.css", "~/Content/themes/base/minified/jquery.ui.datepicker.min.css", "~/Content/themes/base/minified/jquery.ui.progressbar.min.css", "~/Content/themes/base/minified/jquery.ui.theme.min.css")); }
Code from _Layout.cshtml :
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
asp.net-mvc bundling-and-minification
vbullinger Feb 19 '13 at 18:59 2013-02-19 18:59
source share