cjohansen / juicer

A command line tool for JavaScript and CSS developers
630 stars 47 forks source link

lib/juicer/css_cache_buster.rb seems to ignore comments #75

Open MartinThoma opened 10 years ago

MartinThoma commented 10 years ago

I'm running Jekyll with css minify (https://github.com/donaldducky/jekyll-cssminify) that makes use of juicer (version 1.1.1 on my system).

In my CSS files, I have the following part

body {
    /*url(images/background.png)*/
    background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAC9CAIAAAD0lCCqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHpJREFUeNpiMTQ0ZEACTAyogBCf5f///5Top7Z5A+0eerufZPUMqOpZ/g8y9xFQT6r7R7p7R7r9w929w778oLN9VNdPofup7T5GNPUsL168GMjwG/D8TmP5oe4eWttPMH0eOnQIhf/v3z+89rOxseEzj9L8Ntj5AAEGABFXsfOn3zUOAAAAAElFTkSuQmCC) top left repeat-x;
}

When I "compile" the css file, I get:

moose@pc08$ ~/test$ juicer merge -f style.css -o output.css
Unable to locate images/background.png, skipping cache buster
Unable to locate images/nav-background.png, skipping cache buster
Unable to locate images/sinputnbackground.png, skipping cache buster
Produced output.css from
  style.css

I think those three Warnings should not appear as the image source is in a comment.