flownative/neos-compressor

Last activity on 23 August 2022
  • 16
  • 4
  • 59873
composer require flownative/neos-compressor

Output compression for Neos

v2.2.0

Output compression for Neos

Version
v2.2.0
Type
neos-plugin
Release Date
Aug 23, 2022, 8:19:56 am
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 08a2a2c702138a47b344fac00ce5474508b36355

MIT license Packagist Maintenance level: Love

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)}
The content of the readme is provided by Github
The same vendor provides 44 package(s).