Marco Valsecchi

Use CSS Agent in a ASP.NET MVC web application

06 agosto 2012 • ⏲️ 1 min.

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.


Marco Valsecchi

"Man is still the most extraordinary computer of all" (J.F. Kennedy)