Plack::Middleware::JSConcat - Concatenate javascripts
# in app.psgi use Plack::Builder; builder { enable "JSConcat", files => [<static/js/*.js>], filter => '/usr/local/bin/jsmin'; $app; }; # use $env{'psgix.jsconcat.url'} to include javascript.
Plack::Middleware::JSConcat allows you to concatenate multiple javascripts files into one. It provides a content-hashed key as the url for including all the javascript files you specified. You can also provide a filter program to minimize the concatenated file.
Chia-liang Kao <clkao@clkao.org>
Plack
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::JSConcat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::JSConcat
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::JSConcat
For more information on module installation, please visit the detailed CPAN module installation guide.