Skip to content

flownative/neos-compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) {
    [email protected] >
    [email protected] >
}

To compress specific parts, use the compression helper like this:

[email protected] = ${Flownative.Compressor.compress(value)}