Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minify Command #2

Open
amqex opened this issue Jun 11, 2012 · 0 comments
Open

Minify Command #2

amqex opened this issue Jun 11, 2012 · 0 comments

Comments

@amqex
Copy link

amqex commented Jun 11, 2012

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant