2017 © Pedro Peláez
 

library minify

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

image

myzend/minify

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

  • Friday, July 19, 2013
  • by ipascual
  • Repository
  • 2 Watchers
  • 3 Stars
  • 484 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 4 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

MyZend / Minify

Usage

The view helper minifyFiles will create a uniquer minify file, which only will be generated again if you delete it.

Single file, (*1)

$this->headScript()->appendFile($this->minify($this->basePath() . '/js/login/bootstrap.js'));
$this->headScript()->appendFile($this->minify($this->basePath() . '/js/login/jquery.validate.js'));

Group files, you can control files order, (*2)

$this->headLink()->appendStylesheet(
                            $this->minify(
                                array(
                                    $this->basePath() . '/css/bootstrap/bootstrap.css',
                                    $this->basePath() . '/css/bootstrap/bootstrap-responsive.css',
                                    $this->basePath() . '/css/animate.css',
                                    $this->basePath() . '/css/main.css'
                                )
                            )
                        );

Wildcard way, (*3)

$this->headLink()->appendStylesheet($this->minify($this->basePath() . '/css/login/bootstrap/*.css'));

Other options, (*4)

$this->headLink()->appendStylesheet(
                            $this->minify(
                                array(
                                    $this->basePath() . '/css/bootstrap/*.css',
                                    $this->basePath() . '/css/animate.css',
                                    $this->basePath() . '/css/main.css'
                                )
                            )
                        );
Delete all files when deploy new changes.
find . -name "min-*" -exec rm -rf {} \;
Ignore minified files on your repository (.gitignore)
min-*

The Versions

19/07 2013

0.9.2

0.9.2.0

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

  Sources   Download

BSD-2-Clause

The Requires

 

by Ignacio Pascual

zf2 minify

19/07 2013

dev-master

9999999-dev

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

  Sources   Download

BSD-2-Clause

The Requires

 

by Ignacio Pascual

zf2 minify

19/07 2013

0.9.1

0.9.1.0

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

  Sources   Download

BSD-2-Clause

The Requires

 

by Ignacio Pascual

zf2 minify

13/07 2013

0.9

0.9.0.0

Zend Framework 2 module which uses the Steve (mrclay) Clay's Minify library for styles and scripts minification.

  Sources   Download

BSD-2-Clause

The Requires

 

by Ignacio Pascual

zf2 minify