bundle-phu
bundle-phu copied to clipboard
Minify Command
Everything works great, but I am having trouble getting the setMinifyCommand to work. I am trying to use yuicompressor. I have my path to yuicompressor set correctly but the css or js is not being compressed.
I have added:
->setCacheDir(PATH_PROJECT . '/data/cache/css') ->setDocRoot(PATH_PROJECT . '/public') ->setUseMinify(true) ->setMinifyCommand('java -jar /path/to/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar -o :filename') ->setUrlPrefix('/stylesheets');
I have tested the following yuicompressor command manually and it works just fine:
java -jar /path/to/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar test.css -o test.min.css
Is there something I'm leaving out?