ZF3 module for minifying head scripts and head links using matthiasmullie/minify

ZF3 module for minifying head scripts and head links using matthiasmullie/minify

README

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:

'HalfpastfourHeadMinifier'

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',
            ],
        ],
    ],

Source

Add a Comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *