++ed by:
KES BEROV NEYASOV SRI ADAMJS

24 PAUSE users
23 non-PAUSE users.

Author image Jan Henning Thorsen

NAME

Mojolicious::Plugin::AssetPack::Preprocessor::JavaScript - Preprocessor for JavaScript

DESCRIPTION

Mojolicious::Plugin::AssetPack::Preprocessor::JavaScript is a preprocessor for .js files.

JavaScript is minified using JavaScript::Minifier::XS. This module is optional and must be installed manually.

NOTE! JavaScript::Minifier::XS might be replaced with something better.

METHODS

minify

  $self = $self->minify($text);

Used to minify $text, which is a scalar reference to a chunk of JavaScript code.

process

This method use JavaScript::Minifier::XS to process $text.

See "process" in Mojolicious::Plugin::AssetPack::Preprocessor.

COPYRIGHT AND LICENSE

Copyright (C) 2014, Jan Henning Thorsen

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.

AUTHOR

Jan Henning Thorsen - jhthorsen@cpan.org