Dist::Zilla::Plugin::CSS::Compressor - Compress CSS files
version 0.02
[CSS::Compressor]
Compress CSS files in your distribution using CSS::Compressor. By default for each foo.css
file in your distribution this plugin will create a foo.min.css
which has been compressed.
Specifies a FileFinder for the CSS files that you want compressed. If this is not specified, it will compress all the CSS files that do not have a .min.
in their filenames. Roughly equivalent to this:
[FileFinder::ByName / CSSFiles] file = *.css skip = .min. [CSS::Compressor] finder = CSSFile
Regular expression substitution used to generate the output filenames. By default this is
[CSS::Compressor] output_regex = /\.css$/.min.css/
which generates a foo.min.css
for each foo.css
.
Output filename. Not used by default, but if specified, all CSS files are merged and compressed into a single file using this as the output filename.
This method adds the compressed CSS files to your distribution.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2012 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.