Is there a good .Net CSS aggregator that combines style sheets and minifies them?
I am looking to see if there is an open source/free project that provides a CSS manager. I am looking for this mainly for performance tweaking and hoping there is a readymade project rather than building from scratch. Features I am looking for include:
- Combines multiple .css files into a single css file
- Optionally minifies the resulting .css file
- Works well with .Net 开发者_如何学运维(a user control, custom handler, etc)
Is there a project out that that handles this?
SquishIt does a great job combining / minifying and may be of interest
You can try YUICompressor for .Net for the minifying.
We use this on my current project and it works well - it also supports minifying Javascript.
For the aggregating (inlining multiple files into a single file), we ended up rolling our own, as we couldn't find something in .Net that did exactly what we wanted.
精彩评论