logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CSS::Compressor - Perl extension for CSS minification

Acknowledgment

       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.

Author

       Simon Bertrang, <janus@cpan.org>

Description

       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.

Functions

css_compress($source)
       Takes the stylesheet source, minifies it and returns the result string.

Name

       CSS::Compressor - Perl extension for CSS minification

See Also

       <https://github.com/YUICompressor-NET/YUICompressor.NET>
           YUIcompressor project homepage

       <https://github.com/yui/yuicompressor>
           YUIcompressor source repository

       CSS::Packer
           an alternative, Perl-based CSS compressor

Synopsis

         use CSS::Compressor qw( css_compress );
         ...
         my $small = css_compress $css;

See Also