Skip to content

uperl/Dist-Zilla-Plugin-JavaScript-Minifier

Repository files navigation

Dist::Zilla::Plugin::JavaScript::Minifier linux macos windows

Minify JavaScript in your dist.

SYNOPSIS

[JavaScript::Minifier]

DESCRIPTION

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.

ATTRIBUTES

finder

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

output_regex

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

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.

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

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.

About

Minify JavaScript in your dist.

Resources

Stars

Watchers

Forks

Packages

No packages published
close