bundle-phu icon indicating copy to clipboard operation
bundle-phu copied to clipboard

Minify Command

Open amqex opened this issue 12 years ago • 0 comments

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?

amqex avatar Jun 11 '12 03:06 amqex