nginx-modules / nginx-minify

Simple NGINX minify using Perl5 for CSS/JavaScript/HTML5
56 stars 18 forks source link
css html5 java javascript minify nginx perl5

p5-nginx-minify

Nginx Perl Minify [CSS / JS / HTML5]

Depending

FreeBSD

$ portmaster textproc/p5-CSS-Minifier-XS textproc/p5-JavaScript-Minifier-XS textproc/p5-HTML-Packer

Ubuntu/Debian

apt-get install libcss-minifier-xs-perl libjavascript-minifier-xs-perl libhtml-packer-perl

Manual:

wget http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-0.08.tar.gz
tar zxpfv CSS-Minifier-XS-0.08.tar.gz
cd CSS-Minifier-XS-0.08
perl Makefile.PL && make && make install

wget http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-0.09.tar.gz
tar zxpfv JavaScript-Minifier-XS-0.09.tar.gz
cd JavaScript-Minifier-XS-0.09
perl Makefile.PL && make && make install

wget http://search.cpan.org/CPAN/authors/id/N/NE/NEVESENIN/HTML-Packer-1.004001.tar.gz
tar zxpfv HTML-Packer-1.004001.tar.gz
cd HTML-Packer-1.004001
perl Makefile.PL && make && make install

Install

Specificity when choosing a platform

TODO

Known Problems

http://wiki.nginx.org/HttpPerlModule#Known_Problems