Perl extension for css minification
use CSS::Compressor qw( css_compress ); ... my $small = css_compress $css;
This module is an implementation of the \s-1CSS\s0 parts of Yahoo! YUIcompressor in Perl. It was needed to produce minified css on the fly using Perl based backend systems.
Takes the stylesheet source, minifies it and returns the result string.
YUIcompressor project homepage
YUIcompressor source repository
an alternative, Perl-based \s-1CSS\s0 compressor
This module was originally developed for Booking.com. With approval from Booking.com, this module was generalized and put on \s-1CPAN\s0, for which the author would like to express his gratitude.
Simon Bertrang, <[email protected]>
Copyright (C) 2012 by Simon Bertrang
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.