我不想縮小我在ASP .NET MVC 4解決方案中使用的所有文件。因此,例如我有這在我的BundleConfig.cs:不要縮小ASP .NET MVC 4中的某些文件BundleConfig
bundles.Add(new StyleBundle("~/CSS/bootstrap").Include(
"~/Content/Bootstrap/body.css",
"~/Content/Bootstrap/bootstrap-responsive.css",
"~/Content/Bootstrap/bootstrap-mvc-validation.css",
"~/Content/Bootstrap/bootstrap-theme.css",
"~/Content/Bootstrap/bootstrap.css"
));
...
而且來縮小它,當然我用:
BundleTable.EnableOptimizations = true;
所以它的偉大工程。
但現在,我怎麼能縮小除了一個包之外的所有文件?我遇到了一個刪除一些CSS類並希望不能縮小這個CSS的類的問題。
任何幫助將不勝感激。
如果您重命名文件'xxxxx.min.css'它仍然嘗試縮小它? – mxmissile
謝謝你的回答,但我更喜歡不這樣做,當我更新Bootstrap時,我不想移動和重命名文件。 –