★ 1stars
350composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/goatherd/wp-minify/archive/refs/heads/master.zipAlso on Packagist as goatherd/gh-minify:
composer require goatherd/gh-minifyFrom the readme
gh-minify
WordPress HTML minification plugin.
Features
Minifies request content for some contents served through WordPress.
minify HTML
minify inline Script
minify inline CSS
allow to veto through gh-minify-veto filter
allow to post-process minification through gh-minify-content filter
allow to alter tag-ignore list through gh-minify-skip-tags filter
standalone usage
recommended usage
Prepend this to your WordPress index.php
Note that you either need to register composer autoloading
(recommended; for example: requireonce DIR . '/vendor/autoload.php) or
preload the Goatherd\WpPlugin\Minify class file.
technical notes
PSR-4 compliant code approximating SOLID priciples.