Minify JavaScript in your dist.
[JavaScript::Minifier]
Compress JavaScript files in your distribution using JavaScript::Minifier::XS. By default for
each foo.js
file in your distribution this plugin will create a foo.min.js
which has been compressed.
Specifies a FileFinder for the JavaScript files that
you want compressed. If this is not specified, it will compress all the JavaScript
files that do not have a .min.
in their filenames. Roughly equivalent to
this:
[FileFinder::ByName / JavaScriptFiles]
file = *.js
skip = .min.
[JavaScript::Minifier]
finder = JavaScriptFiles
Regular expression substitution used to generate the output filenames. By default this is
[JavaScript::Minifier]
output_regex = /\.js$/.min.js/
which generates a foo.min.js
for each foo.js
.
Output filename. Not used by default, but if specified, all JavaScript files are merged and compressed into a single file using this as the output filename.
Graham Ollis [email protected]
This software is copyright (c) 2012-2024 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.