flownative/neos-compressor

Last activity on 1 January 2017
  • 6
  • 2427
composer require flownative/neos-compressor

Output compression for Neos

1.0.1

Output compression for Neos

Version
1.0.1
Type
typo3-flow-package
Release Date
Nov 1, 2016 10:22:13 a.m.
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT d0beb262bb66dcc5579a33bf1bb282d1962f21ff

Flownative Neos Compressor

This package by default compresses the head and body of the TYPO3.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 TYPO3.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(TYPO3.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 19 package(s).