Skip to content
This repository was archived by the owner on Nov 24, 2017. It is now read-only.
This repository was archived by the owner on Nov 24, 2017. It is now read-only.

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

@MartinThoma

Description

@MartinThoma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions