I want to be able to, at build-time, submit a group of CSS files and have the following done:
I'm sure there are others, but this what I'm starting with.
This is the preference order of how I would like to access the tool:
I saw CSS Compressor, but it doesn't seem to combine CSS files nor does it combine overlapping CSS selectors.
Thanks in advance.
I would recommend the YUI compressor since it is widely used and has a command line interface.
You should also consider making your build process automated so that you can build everything with a single command. If you don't want to use an existing build tool you could create a short .bat
file for this kind of task.
First, combine your files:
type file1.css file2.css file3.css > combined.css
then pass it to the YUI compressor:
java -jar yuicompressor.jar combined.css > combined-min.css
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With