Parse error occurred while processing compressed CSS
Closed this issue · 7 comments
CSS file: http://chrisyip.im/stylesheets/screen.css.
It came from SCSS files, and already compressed by default.
When jekyll-press tried to precess it, throw an error:
parse error occurred while processing: stylesheets/screen.css
details: parse error on value "2" (NUMBER)
copying initial file
There is error in rule
... {line-height:2}
Add measurement unit (px
, %
etc)
It is a valid rule, line-height: 2
is a shorthand of line-height: 200%
.
Example: http://jsbin.com/aboweg/1/edit
Yes, it is. I didn't know that.
And I tried to minify it (a{line-height:2}
) and it didn't throw an error
Because it's compiled from SCSS, all rules should be valid.
If there's a way to disable built-in compressor and let jeykll-press to output verbose log?
So that we can know which rule is invalid.
The error is in tr:nth-of-type(2n)
and a:nth-of-type(2)
. css parser (csspool) don't support it (see sparklemotion/csspool#26)
I added ability to swap css minifier (see my new gem multi_css). To use other css minifier simply add it to Gemfile. Try for example gem "cssminify"
Thanks, it works!