Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net mvc exclude css file from bundle

I have such bundle

bundles.Add(new StyleBundle("~/Content/themes/default/css")        .IncludeDirectory("~/Content/themes/Default", "*.css")); 

but I want to exclude one CSS file from it.

Is it possible to make this without specifying each CSS file in bundle?

like image 608
xurca Avatar asked Dec 21 '12 12:12

xurca


1 Answers

Try using IgnoreList.Ignore; bundles.IgnoreList.Ignore(...).

like image 108
CoffeeCode Avatar answered Oct 04 '22 11:10

CoffeeCode