Skip to content

How does paths option really work? #4

@robhrt7

Description

@robhrt7

I have this kind of CSS file:

@import "/res/css/reset.css";
@import "/res/css/base/base.css";

and Grunt config:

cssjoin: {
    bundles: {
        options: {
            paths: ['build/grunt']
        },
        files: [
            {
                expand: true,
                cwd: 'path/with/import-bundles',
                dest: 'comp/some',
                src: [
                    '**/*.css'
                ]
            }
        ]
    }
}

In cases, where defined file path in @import could not be found (on filesystem), task uses options.paths.path + declared import path, but if file that is declared in @import statement exists, options.paths are not used in forming right path to file that I need to join.

So if /res/css/reset.css exists, cssjoin will take file from there, but if not, if would combine path in options.paths and will lookup file in this dir build/grunt/res/css/reset.css. How could I make cssjoin to only look for path that are combined with option defined rule?

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