6 agosto 2012

Use CSS Agent in a ASP.NET MVC web application

CSS Agent is an ASP.NET handler that provides automatic vendor prefixes, CSS constants and minification to your style sheets.

I always use it on my last ASP.NET Web Forms applications without any problems but since I moved to ASP.NET MVC web applications I must remember to ignore the specified CSS URL route on the RegitserRoutes method on my Global.asax.cs file:

 routes.IgnoreRoute("screen-min.css");  

Where "screen-min.css" is the relative path to my stylesheet file.