Created
December 28, 2011 21:05
-
-
Save pavlakis/1529735 to your computer and use it in GitHub Desktop.
pavlakis.info - initial configuration for PhpIMinifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$yuiLocation = '/Users/antonis/Sites/yui/build/yuicompressor-2.4.8pre.jar'; | |
$public = '/Users/antonis/Sites/branches/development/public/'; | |
$version = '1112v3'; | |
$css = $public . 'css/'; | |
$js = $public . 'js/custom/'; | |
$cssMinify = new PhpIMinifier($css, $version, 'css'); | |
$cssMinify->setYuiCompressorExec($yuiLocation); | |
$cssMinify->setOutputActivity(true); | |
$cssMinify->run(); | |
// get all output and errors as a string | |
echo $cssMinify; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment