Closed wesleyalcoforado closed 12 years ago
I solved the issue by using yui-compressor directly, instead of the gem. I put the YUI jar file in the root and updated the _config.yml to:
exclude: [yuicompressor-2.4.7.jar] asset_bundler: compress: js: java -jar yuicompressor-2.4.7.jar -o :outfile :infile css: java -jar yuicompressor-2.4.7.jar -o :outfile :infile
I was about to suggest this solution. I have run into issues with the yui/compressor gem on Windows as well. I'll make a note to document this.
Here's my liquid block that I set up on my layout:
{% bundle %}
and this is the configuration in _config.yml
asset_bundler: compress: js: yui css: yui remove_bundled: true
When I run Jekyll, it shows no error messages and generates the infile (which is a css file with the two above concatenated). In the generated html it shows this line where it's supposed to be the reference to the bundle:
Liquid error: Invalid argument - java -jar c:/Ruby193/lib/ruby/gems/1.9.1/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type css --charset utf-8
I'm on Windows 7 32bits / Ruby 1.9.3