goatherd/gh-minify
Composer 安装命令:
composer require goatherd/gh-minify
包简介
Plugin for html minification.
关键字:
README 文档
README
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-vetofilter - allow to post-process minification through
gh-minify-contentfilter - allow to alter tag-ignore list through
gh-minify-skip-tagsfilter - standalone usage
recommended usage
Prepend this to your WordPress index.php
Goatherd\WpPlugin\Minify::initPlugin(); // enable minify
Note that you either need to register composer autoloading
(recommended; for example: require_once __DIR__ . '/vendor/autoload.php) or
preload the Goatherd\WpPlugin\Minify class file.
technical notes
PSR-4 compliant code approximating SOLID priciples.
统计信息
- 总下载量: 350
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-23