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.

juicer merge & external CSS #55

@syelle

Description

@syelle

I have my css files stored in [PROJECT_PATH]/assets/css in my project. One of my CSS files imports from Google Fonts:

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,800);

When Juicer attempts to merge without a document root specified, it gives an error that I need to specify a document root:

> juicer -v merge assets/css/main.css --force
gems/juicer-1.0.16/lib/juicer/dependency_resolver/dependency_resolver.rb:42:in `resolve_path': Cannot resolve absolute path 'http://fonts.googleapis.com/css' without document root option (ArgumentError)

If I specify document root, Juicer throws another error related to not being able to find a /css directory:

> juicer -v merge assets/css/main.css --force -d .
gems/juicer-1.0.16/lib/juicer/dependency_resolver/dependency_resolver.rb:68:in `foreach': No such file or directory - [PROJECT_PATH]/css (Errno::ENOENT)

I'm executing the above from my project root. If I try an absolute path for the project root, I still get the same error.

Should I be using different syntax? Is there a way to get Juicer to ignore this input short of separating it into a CSS file that juicer isn't tasked with minifying and merging?

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