Mojolicious::Plugin::AssetPack::Preprocessor::JavaScript - Preprocessor for JavaScript
Mojolicious::Plugin::AssetPack::Preprocessor::JavaScript is a preprocessor for .js files.
.js
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.
$self = $self->minify($text);
Used to minify $text, which is a scalar reference to a chunk of JavaScript code.
$text
This method use JavaScript::Minifier::XS to process $text.
See "process" in Mojolicious::Plugin::AssetPack::Preprocessor.
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.
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Mojolicious::Plugin::AssetPack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AssetPack
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack
For more information on module installation, please visit the detailed CPAN module installation guide.