The view helper minifyFiles will create a uniquer minify file, which only will be generated again if you delete it.
Single file
$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
$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
$this->headLink()->appendStylesheet($this->minify($this->basePath() . '/css/login/bootstrap/*.css'));
Other options
$this->headLink()->appendStylesheet(
$this->minify(
array(
$this->basePath() . '/css/bootstrap/*.css',
$this->basePath() . '/css/animate.css',
$this->basePath() . '/css/main.css'
)
)
);
find . -name "min-*" -exec rm -rf {} \;
min-*