|
NAMEjs_compactor - Command line utility to reduce JavaScript code to as few characters as possible.USAGEjs_compactor -src=source_file [OPTIONS] SYNOPSISjs_compactor [--src=source_file] [--dest=destination_file] [--opt] [--comment_exception=text] [--remove_comments] [--replace_white_space] [--remove_blank_lines] [--combine_concats] [--join_all] [--replace_extra_whitespace] [--no_remove_comments] [--no_replace_white_space] [--no_remove_blank_lines] [--no_combine_concats] [--no_join_all] [--no_replace_extra_whitespace] [--force] [--help]DESCRIPTIONThe "--src" option is required.Default usage is as though you specified "--opt", for optimal settings. Setting any of the specific settings will override the default "--opt" behavior, and rules will be applied one by one. You may also specify "--opt" and then disable specific features with a "--no_option_name" style option.
Comments and string literals (if still embeded) are untouched.
EXAMPLESThe normal use is probably just for one off squishings:js_compactor --src=input_file > new_file.js If you're squishing something with a copyright, it is recommended that you retain that copyright: js_compactor --comment_exception=copyright --src=input_file > new_file.js If you want the code to still be somewhat readable, it is often helpful to retain all the line breaks: js_compactor --opt --no_join_all --comment_exception=copyright --src=input_file > new_file.js SEE ALSOJavaScript::SquishBUGSPlease refer to http://developer.berlios.de/projects/jscompactor/ to report bugs.AUTHORJoshua I. Miller <jmiller@puriifeddata.net>COPYRIGHT AND LICENSECopyright (c) 2005 by CallTech Communications, Inc.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
Visit the GSP FreeBSD Man Page Interface. |