The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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