Skip to content

olegpro/compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

compression

===========

JS and CSS files compress

Пример использования для MODx Evolution

<?php
require_once MODX_BASE_PATH . "assets/plugins/compression/compression.php"; 

$js_dirs      = array('assets/templates/aqwella/js/', 'assets/templates/aqwella/js/fancybox/fancybox/');
$cs_dirs      = array('assets/templates/aqwella/css/', 'assets/css/', 'assets/templates/aqwella/js/fancybox/fancybox/');
$merged_dir   = 'assets/merged/';
$home_dir     = MODX_BASE_PATH;

compression::compress($js_dirs, $cs_dirs, $merged_dir, $home_dir);
?>

About

JS and CSS files compress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages