ASP.NET MVC Razor CSS and Javascript Compress and Manager

8 באוגוסט 2011


If you are ASP.NET MVC Razor developer and you are looking for a nice solution to Combine, Compress and Manage your CSS and JavaScript files,

Well SquishIt can fit your needs.

Razor Code Sample:



Output looks like this:

<link rel="stylesheet" type="text/css" href="/media/css/combined_312454.css" />
<script type="text/javascript" href="/media/js/combined_312454.js"></script>

You can read more here.

We are using SquishIt on the company I work and it look like a really nice and useful solution.

I hope you will find it useful on your company or project also 🙂



Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



  1. Stanislav14 באוגוסט 2011 ב 22:17

    Maybe it's only me, but I'd actually prefer to write the same functionality as a separate http module.

  2. Rotem Bloom16 באוגוסט 2011 ב 11:53

    Hi Stanislav,
    Thanks 4 your comment.
    Can you share your HttpModule solution?
    With a solution based on HttpModule you need to make sure your are caching your JS result and not compressing and open the JS files on every request.