Skip to content

Error without declared css_path/css_paths #38

Closed
@mrusa

Description

@mrusa

When using version 3 without declaring css_path and css_paths in the yaml config (using only manifest_name), the following error occurs when trying to generate critical css via rake task:

undefined method collect for nil

It's coming from this line https://github.com/mudbugmedia/critical-path-css-rails/blob/master/lib/critical_path_css/rails/config_loader.rb#L27

I'm using Rails 5.2.2. When downgrading the gem to 2.10.1 this error does not occur anymore.

I hope this helps and thanks for your work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions