Closed bndn closed 11 years ago
Interesting problem. Couple of questions: Which library are you using (e.g. Closure Compiler, YUI, etc.)? Can you compress the CSS file manually from the command line using this library? Is it throwing an error when you run the jekyll
command?
I use YUI Compressor. Compressing the CSS file from the command line give an error too : YUI::Compressor::RuntimeError: compression failed
. The error from Jekyll is Asset Pipeline: Compiling bundle...Failed to compress asset with 'JekyllAssetPipeline::CssCompressor'.
But I found that the problem is from YUI Compressor 2.4.4 included in ruby-yui-compressor. I tried with the version 2.4.7 from yuicompressor and it works.
And I’m not the only one that have this problem : https://github.com/sstephenson/ruby-yui-compressor/issues/19
I should have looked better before reporting a problem here :)
I use SASS ans Compass to generate a data-uri with the Compass method
inline-image()
and the commandcompass compile
. The CSS file is generated then I call it in thecss_asset_tag
, but theJekyllAssetPipeline
fails to compress the file depending of data. The following content is compressed :but not this one, with only one more character ! :
I do not understand what is the problem :/