flownative/neos-compressor
最新稳定版本:v2.2.0
Composer 安装命令:
composer require flownative/neos-compressor
包简介
Output compression for Neos
README 文档
README
Flownative Neos Compressor
This package by default compresses the head and body of the Neos.Neos:Page prototype
using the default compressor of wyrihaximus/html-compress.
Installation
composer require flownative/neos-compressor
Usage
As soon as the package is installed, the Neos.Neos:Page prototype is amended with @process
instructions on the head and body elements. This will compress and "regular" output without
any further steps to take.
Adjust compression
To remove the default compression, simply override:
prototype(Neos.Neos:Page) {
head.@process.compression >
body.@process.compression >
}
To compress specific parts, use the compression helper like this:
something.@process.compression = ${Flownative.Compressor.compress(value)}
统计信息
- 总下载量: 78.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-08