kenshodigital/kirby-htmldoc
最新稳定版本:2.1.0
Composer 安装命令:
composer require kenshodigital/kirby-htmldoc
包简介
Minifies HTML5 output for Kirby projects.
README 文档
README
Minifies HTML5 output for Kirby projects.
General
Integrates Hexydec’s excellent HTMLDoc library into Kirby projects to minify HTML5 output.
Installation
composer require kenshodigital/kirby-htmldoc ^2.1
Usage
Basically works out of the box without any additional configuration.
Configuration
However, applicable content types as well as the library’s default configuration can be easily modified in your site’s config.php.
<?php declare(strict_types=1); return [ 'kensho.htmldoc' => [ 'contentTypes' = [ 'htm', 'html', ], 'config' => [ 'minify' => [ 'quotes' => false, 'urls' => [ 'relative' => false, 'parent' => false, ], ... ], ], ], ];
Defaults
Applicable content types are set to htm and html by default. For the library, only the settings for quotes and relative URLs deviate from the library’s defaults and are set to false in this plugin.
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-20