Closed juggy closed 13 years ago
Thanks, this is merged to master at 50a85d0fc06be5d9f7a3484179ef1a14908b6ad8.
Any reason this has a hard dependency on YUI?
The ideal approach would be to remove the hard dependency on YUI. Jammit could print out a warning message if it can't find any compressors (with an option to turn that off, e.g. in an initializer, if you really don't want any compressors).
Cheers!
My idea was to make it an easy install... Just include the gem and you are set. Putting no compressors would require changes in the config of people using the defaults.
Yes -- YUI is currently always needed in order to compress CSS, so it seems like a good baseline. If we find good pure Ruby compressors for both CSS and JS, we can remove all the Java dependencies ... but I don't think the quality would be nearly as high.
Based on issue https://github.com/documentcloud/jammit/issues/closed/#issue/123/comment/916842
This provides a more flexible approach. You can chose your compressor and not install any other.