NAME

minify - PPI-minify Perl source files

SYNOPSIS

minify [options] FILE...
minify -o OUT FILE

DESCRIPTION

Thin front-end for App::SlimPacker::Minify: each FILE is read, run through the PPI minifier (comments, POD and redundant whitespace are removed) and printed to STDOUT, or written to -o FILE. By default my variables and sub/method names are renamed to short names. Nothing is traced or bundled; see slimpack for building standalone scripts. slimpack minify offers the same mode.

OPTIONS

-o, --output FILE

Write the minified source to FILE instead of STDOUT. Needs exactly one input file.

--rename-vars, --no-rename-vars

Rename my variables to short names (default on). The legacy spelling --rename/--no-rename is still accepted as an alias.

--rename-subs, --no-rename-subs

Rename sub and method names to short names (default on). Names Perl dispatches or reads by name (builtins, magic methods, string arguments to ->can(...), ...) are kept verbatim.

--rename-exports, --no-rename-exports

Also rename names in qw() import/export lists and can()/import() strings (default off; only meaningful together with --rename-subs).

--rewrite, --no-rewrite

Rewrite keywords and operators into shorter equivalent forms (foreach -> for, m/.../ -> /.../, dropped ; before }, $x += 1 -> $x++, ...). Experimental, default off.

-h, --help

Print a usage summary and exit.

AUTHOR

Nicolas Mendoza <mendoza@pvv.ntnu.no>

LICENSE

Artistic License 2.0.

SEE ALSO

slimpack, App::SlimPacker, App::SlimPacker::Minify