03 Dec 2018 12:01:28 UTC
- Distribution: CSS-Compressor
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (286 / 0 / 0)
- KwaliteeBus factor: 0
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (18.84KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
- COPYRIGHT AND LICENSE
CSS::Compressor - Perl extension for CSS minification
use CSS::Compressor qw( css_compress ); ... my $small = css_compress $css;
This module is an implementation of the CSS 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 CSS compressor
This module was originally developed for Booking.com. With approval from Booking.com, this module was generalized and put on CPAN, for which the author would like to express his gratitude.
Simon Bertrang, <firstname.lastname@example.org>
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.
Module Install Instructions
To install CSS::Compressor, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CSS::Compressor
For more information on module installation, please visit the detailed CPAN module installation guide.