My web app is using a large icon set with jquery-ui and jqgrid.
In order to easily maintain the changes to the CSS to accommodate the larger icons when upgrading jquery-
You can create your custom bundler and override OrderFiles method
public class CustomBundleOrderer : IBundleOrderer
{
public IEnumerable OrderFiles(BundleContext context, IEnumerable files)
{
return files;
}
}
then pass your css files in the order you would like them to be bundled
var bundle = new StyleBundle("~/Content/dark-hive/allstyles")
{
Orderer = new CustomBundleOrderer()
};
bundle.Include(
"~/Content/dark-hive/jquery-ui-1.8.23.custom.css",
"~/Content/ui.jqgrid.css",
"~/Content/jquery-ui-fixes.css",
"~/Content/icons.css",
"~/Content/site.css");
bundles.Add(bundle);