Latest Stable Version composer.lock available License Total Downloads Maintainability Scrutinizer score Scrutinizer build status

ZF3 Head Minifier

ZF3 module that minifies head links and head scripts using matthiasmullie/minify.

Installation:

Require this module via composer:

$ composer require halfpastfouram/zend-headminifier

Add the module to modules.config.php:

'Halfpastfour\HeadMinifier'

Configuration

The following settings can be changed in your global configuration file:

    'minify_head' => [
        'script' => [
            'enabled'     => true,
            'directories' => [
                'public' => './public',
                'cache'  => './public/js',
            ],
        ],
        'link'   => [
            'enabled'     => true,
            'directories' => [
                'public' => './public',
                'cache'  => './public/css',
            ],
        ],
    ],