Is there a good .Net CSS aggregator that combines style sheets and minifies them?
-
01-10-2019 - |
문제
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.
제휴하지 않습니다 StackOverflow