{"id":15017243,"url":"https://github.com/nginx-modules/nginx-minify","last_synced_at":"2025-04-09T19:42:17.240Z","repository":{"id":8330398,"uuid":"9883958","full_name":"nginx-modules/nginx-minify","owner":"nginx-modules","description":"Simple NGINX minify using Perl5 for CSS/JavaScript/HTML5","archived":false,"fork":false,"pushed_at":"2016-03-11T23:18:57.000Z","size":3,"stargazers_count":55,"open_issues_count":1,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T21:35:55.342Z","etag":null,"topics":["css","html5","java","javascript","minify","nginx","perl5"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nginx-modules.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-06T09:48:44.000Z","updated_at":"2025-03-09T14:42:34.000Z","dependencies_parsed_at":"2022-07-21T13:49:06.882Z","dependency_job_id":null,"html_url":"https://github.com/nginx-modules/nginx-minify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nginx-modules%2Fnginx-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nginx-modules%2Fnginx-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nginx-modules%2Fnginx-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nginx-modules%2Fnginx-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nginx-modules","download_url":"https://codeload.github.com/nginx-modules/nginx-minify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248100998,"owners_count":21047884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","html5","java","javascript","minify","nginx","perl5"],"created_at":"2024-09-24T19:50:06.935Z","updated_at":"2025-04-09T19:42:17.221Z","avatar_url":"https://github.com/nginx-modules.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"p5-nginx-minify\n===============\n\nNginx Perl Minify [CSS / JS / HTML5]\n\nDepending\n===============\n**FreeBSD**\n```bash\n$ portmaster textproc/p5-CSS-Minifier-XS textproc/p5-JavaScript-Minifier-XS textproc/p5-HTML-Packer\n```\n**Ubuntu/Debian**\n```bash\napt-get install libcss-minifier-xs-perl libjavascript-minifier-xs-perl libhtml-packer-perl\n```\n\n**Manual**:\n* [p5-CSS-Minifier-XS](http://search.cpan.org/dist/CSS-Minifier-XS/lib/CSS/Minifier/XS.pm)\n* [p5-JavaScript-Minifier-XS](http://search.cpan.org/dist/JavaScript-Minifier-XS/lib/JavaScript/Minifier/XS.pm)\n* [p5-HTML-Packer](http://search.cpan.org/dist/HTML-Packer/lib/HTML/Packer.pm) ([in github](https://github.com/nevesenin/html-packer-perl))\n\n```bash\nwget http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-0.08.tar.gz\ntar zxpfv CSS-Minifier-XS-0.08.tar.gz\ncd CSS-Minifier-XS-0.08\nperl Makefile.PL \u0026\u0026 make \u0026\u0026 make install\n\nwget http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-0.09.tar.gz\ntar zxpfv JavaScript-Minifier-XS-0.09.tar.gz\ncd JavaScript-Minifier-XS-0.09\nperl Makefile.PL \u0026\u0026 make \u0026\u0026 make install\n\nwget http://search.cpan.org/CPAN/authors/id/N/NE/NEVESENIN/HTML-Packer-1.004001.tar.gz\ntar zxpfv HTML-Packer-1.004001.tar.gz\ncd HTML-Packer-1.004001\nperl Makefile.PL \u0026\u0026 make \u0026\u0026 make install\n```\n\nInstall\n===============\n* To copy the file `nginx.conf` into the folder `/etc/nginx/nginx.conf`\n* Create folder nginx/perl: `mkdir /etc/nginx/perl`\n* To copy the file `Minify.pm` into the folder `/etc/nginx/perl/`\n\nSpecificity when choosing a platform\n===============\n* BSD and OS X (`--prefix=/usr/local/etc/nginx`)\n* Official repo Linux Nginx (`--prefix=/etc/nginx`)\n* Maintainer Ubuntu Nginx, [bug #2](https://github.com/nginx-modules/nginx-minify/issues/2) (`--prefix=/usr/share/nginx`)\n\nTODO\n===============\n* […] $content_type = \"text/html\" on fastcgi/proxy after compress\n* […] algorithm cache select path for static\n\nKnown Problems\n===============\nhttp://wiki.nginx.org/HttpPerlModule#Known_Problems\n* If a Perl module performs protracted operation, (for example DNS lookups, database queries, etc), then the worker process that is running the Perl script is completely tied up for the duration of script. Therefore embedded Perl scripts should be extremely careful to limit themselves to short, predictable operations.\n* It's possible for Nginx to leak memory if you reload the configuration file (via 'kill -HUP \u003cpid\u003e').\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnginx-modules%2Fnginx-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnginx-modules%2Fnginx-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnginx-modules%2Fnginx-minify/lists"}