NAME
JavaScript::Minifier::XS - C version of javascript minification.
SYNOPSIS
use File::Slurp;
use JavaScript::Minifier::XS qw(minify);
my $javascript_contents = read_file("my-javascript-file.js");
my $minified_contents = minify($javascript_contents);
write_file("my-minified-javascript-file.min.js", $minified_contents);
DESCRIPTION
Minifies javascript. Code taken from here, originaly: https://github.com/rf-/jsminc/blob/master/ext/jsminc/jsminc.c
Took way too long to minfify larger files with JavaScript::Minifier; so I decided to write my first perl XS module. This one seems to work basically instantaneously.
SEE ALSO
The original JavaScript::Minifier, which I used before this.
AUTHOR
Adam Harrison, <adam@eshopadmin.com<gt>
COPYRIGHT AND LICENSE
Copyright (C) 2017 by Adam Harrison
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.0 or, at your option, any later version of Perl 5 you may have available.