2017 © Pedro Peláez
 

library rrcom-less-module

CSS LESS compiler module for Zend Framework 2

image

rrcom/rrcom-less-module

CSS LESS compiler module for Zend Framework 2

  • Wednesday, January 21, 2015
  • by RRcom
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

RrcomLessModule

Zend frameword 2 module that automatically compile LESS file to CSS, (*1)

How to use

  1. Save this module to your module directory
  2. add "RrcomLessModule" in your zf2 config inside the modules array (config/application.config.php)
  3. create "rrcomlessmodule.local.php" in config/autoload directory
  4. populate "rrcomlessmodule.local.php" with this example value
<?php
return array(
    'rrcomlessmodule' => array(
        // enable or disable auto compiling (must be disable in production environment to reduce processing time)
        'enable' => true,

        // The files to compile and theirs output directory
        'files' => array(
            array(
                // .less source directory 1
                'less-file' => './public/less/sample1.less',

                // .css output directory 1
                'css-file' => './public/css/sample1.css',

                /*
                * Set formatter
                * lessjs (default) — Same style used in LESS for JavaScript
                * compressed — Compresses all the unrequired whitespace
                * classic — lessphp’s original formatter
                */
                'formatter' => 'compressed',
            ),

            // If you need to compile multiple less files just add another array
            array(
                // .less source directory 2
                'less-file' => './public/less/sample2.less',

                // .css output directory 2
                'css-file' => './public/css/sample2.css',

                // Set formatter
                'formatter' => 'compressed',
            ),
        ),
    ),
);

The Versions

21/01 2015

dev-master

9999999-dev https://github.com/RRcom/RrcomLessModule

CSS LESS compiler module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

css zf2 module less rrcom

20/01 2015

v1.1.0

1.1.0.0 https://github.com/RRcom/RrcomLessModule

CSS LESS compiler module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

css zf2 module less rrcom

10/11 2014

v1.0.0

1.0.0.0 https://github.com/RRcom/RrcomLessModule

CSS LESS compiler module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

css zf2 module less rrcom